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.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.......
 
Yeah, but is it art? What do you think tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic