Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a client get IllegalStateException?

 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A CMT bean accessing EJBContext.getUserTransaction() or a BMT bean accessing setRollbackOnly/getRollbackOly() throws an IllegalStateExcetion.
Can somebody tell me if a client receives this IllegalStateException as it is or Will it receive this Exception(IllegalStateException) wrapped up in a RemoteException if it is a remote client and EJBException if it is a local client?
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vish,
IllegalStateException wrapped up in a RemoteException if it is a remote client and EJBException if it is a local client.
Regards,
Phil.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers 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!