Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Implementing the javax.ejb.SessionBean


Message #1 by "Behrang Saeedzadeh" <behrangsa@y...> on Wed, 17 Jul 2002 12:50:40
The javax.ejb.SessionBean interface has four callback methods namely 
ejbActivate(), ejbPassivate(), ejbRemove(), and setSessionContext() and 
all of these methods are declared to throw a java.rmi.RemoteException.

But in the Java Server Programming J2EE 1.3 Edition, Chapter 14, page 704-
705, there's an example (OrderManagementBean) that implements the 
SessionBean interface but has not declared its callback methods to throw 
java.rmi.RemoteException. Is this is a mistake or we should not throw a 
java.rmi.RemoteException from callback methods in our implementation 
classes?

Thanks in advance.

  Return to Index