Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception that client gets when he calls remove on a bean

 
Prasad Kuppa
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The scenario I am writing is : Client calls remove() on a bean thats already been removed.
It is mentioned in HF EJB Book that remote clients get RemoteException and local clients get EJBException. (Page 559)
But, the spec says the client should get more specific exceptions ie, remote client gets NoSuchObjectException and local client gets NoSuchObjectLocalException. ( 18.3.4 & 18.3.5)
Please clarify..
Thanks,
Prasad
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prasad,
You're right, but there is non contradiction : NoSuchObjectException *is* a RemoteException and NoSuchObjectLocalException *is* an EJBException.
Best,
Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic