com.ibm.websphere.startupservice
Interface ModStartUp
-
- All Superinterfaces:
- javax.ejb.EJBObject, java.rmi.Remote
public interface ModStartUp extends javax.ejb.EJBObject
Startup beans who's start() methods are to be invoked at module start time must use this interface for their remote interfaces. It cannot be extended, you must use it as is.The methods should be set up to run as a role if security is enabled and the methods can use any TX_ mode except TX_MANDATORY.
- See Also:
ModStartUpHome
-
-
Method Detail
-
start
boolean start() throws java.rmi.RemoteException
This method is called when the module containing this bean is started. Any exception thrown by the start method is the same as the method returning false. This method should return quickly. If it needs to do any extended processing then it should use a WorkManager and do this processing using a Work object (WorkManager.startWork).This method cannot be declared with TX_MANDATORY as there will never be an incoming transaction when the start method is called. A runtime exception will result if TX_MANDATORY is used.
- Returns:
- true if the application can start, false if the startup code wants to abort starting the application.
- Throws:
java.rmi.RemoteException
-
stop
void stop() throws java.rmi.RemoteException
This is called when a module is stopped normally. All beans implementing this remote interface will have their stop methods called. Any exceptions are ignored.This method cannot be declared with TX_MANDATORY as there will never be an incoming transaction when the start method is called. A runtime exception will result if TX_MANDATORY is used.
- Throws:
java.rmi.RemoteException
-
-