stop() method

The startup service calls the bean's stop() method when the application stops. The startup bean implements business logic to clean up after the application stops. For example, you can use the startup beans to clean up some useless data from the database. The toolkit logs but ignores any exception thrown by the stop() method. The application continues to stop.

There are no restrictions on what code the start() and stop() methods can run because the full Enterprise Application Server programming model is available to these methods.