• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

HFE error?

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On page 279, it reads that home business method must declare a RemoteException(last third bulletin).
It contradicts with that on page 346 last sentence and that on EJB spec 10.6.6 where both states that home business method must NOT declare a RemoteException.
 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please note that in page 279, they are explaining about Remote Interface business methods. Remote Interface business methods must through RemoteException, but not the business methods in your Bean class. There is no mistake.
Prasad
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Yi Meng,
I think you read the spec in wrong way, because On 10.6.6 defines the rules for ejbHome<method> of Bean class which cannot include RemoteException in throws clause, While On page 279 in HF EJB defines the rule for Remote Home interface, and in that Home business method can include RemoteException in throws clause which is right, You can verify on page 114 section 9.5.4 in EJB spec.

Regards,
[ December 26, 2003: Message edited by: Nauman Khan ]
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nauman Khan:
I think you read the spec in wrong way, because On 10.6.6 defines the rules for ejbHome<method> of Bean class which cannot include RemoteException in throws clause, While On page 279 in HF EJB defines the rule for Remote Home interface, and in that Home business method can include RemoteException in throws clause which is right, You can verify on page 114 section 9.5.4 in EJB spec.


Thanks a lot. I always mix the method in interface and that in bean class, poor me.......
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic