com.ibm.websphere.startupservice
Interface ModStartUp
All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote
- public interface ModStartUp
- extends javax.ejb.EJBObject
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:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
start()
This method is called when the module containing this bean is started.
|
|
stop()
This is called when a module is stopped normally.
|
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail
start
- boolean start()
- throws java.rmi.RemoteException
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
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.