Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

throws RemoteException, EJBException for Callback methods in bean ?

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Crettaz�s cheat sheets have �throws RemoteException, EJBException� declared for the container callback methods of the SB and EB classes (eg ejbPassivate(), ejbRemove()).

But on page 397 of HFEJB, those callback methods of a EB on that page did not declare.

Why ?
Which is right ?

Callback methods declared in the EB, SB interfaces do declare �throws RemoteException, EJBException�. As such, I personally think that Crettaz is right.

Someone pls clarify.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I answered the same question last week here.

Hint: The search tool comes in very handy sometimes
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic