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

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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic