com.ibm.websphere.startupservice

Interface AppStartUp

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

  1. public interface AppStartUp
  2. extends javax.ejb.EJBObject
Startup beans 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:
AppStartUpHome

Method Summary

Modifier and Type Method and Description
  1. boolean
start()
This method is called when the application containing this bean is started.
  1. void
stop()
This is called when an application is stopped normally.
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove

Method Detail

start

  1. boolean start()
  2. throws java.rmi.RemoteException
This method is called when the application 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

  1. void stop()
  2. throws java.rmi.RemoteException
This is called when an application 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