start() method

The startup service calls the bean's start() method when the application starts. The startup bean implements business logic to set up the environment for the application. The start() method returns a boolean. True indicates a normal application startup and false indicates that the application startup failed.

The start() and stop() methods cannot use a TX_MANDATORY attribute because a transaction does not exist on the thread when the startup service invokes the start() or stop() methods. The start() and stop() methods can use any other TX_* attribute. If the startup() or stop() methods use the TX_MANDATORY attribute, the startup service logs an exception and the application does not start.