• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFE error?

 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • 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.
 
Prasad Kuppa
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • 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
 
Nauman Khan
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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
  • 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.......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic