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

RemoteExceptions in Container Callback methods ? - valoxo cheetsheets

 
saran ram
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In valoxo cheetsheets,
http://www.valoxo.ch/jr/BeanProviderResponsibilities.pdf,

All the container callback methods throws RemoteException?
That too, its not shown as optional?
But I'm not seeing RemoteException the examples of HFEJB?
 
Krishnaraj Govindaraju
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For EJB2.0, container callback should not throw java.rmi.RemoteException.Instead it throws javax.ejb.EJBException.
Since EJBException is subclass of java.lang.RuntimeExcetion you need not
include it in throws clause of callback
 
saran ram
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You krishnaraj.
Can the author of the valoxo cheatsheets or somebody who've followed the cheatsheets for the exam please add some comments on this?
 
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!