Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!