This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
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.
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
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.
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.......
Meng Yi
Yeah, but is it art? What do you think tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss