Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer EJB applications > Manage EJB containers


Change enterprise bean types to initialize at application start time

All EJB types within a server can be forced to initialize at application start time by setting a system property within the administrative console.

If the value of this property is set to true, then all beans within the server are initialized at each application's start time.

However, by default, the product's EJB container delays the initialization (loading of classes and processing of deployment descriptor metadata) of most EJB types until they are needed during run time. This delay helps to speed up the application start time.


Procedure

  1. Open the administrative console.

  2. Select Servers.

  3. Select Application Servers.

  4. Select the server to configure.

  5. In the Server Infrastructure area, select Java and Process Management.

  6. In the Server Infrastructure area, select Process Definition.

  7. In the Additional Properties area, select Java Virtual Machine.

  8. In the Additional Properties area, select Custom Properties.

  9. Select the New box.

  10. In the Name entry field, type com.ibm.websphere.ejbcontainer.initializeEJBsAtStartup.

  11. In the Value entry field, type true. Entering true causes all EJB to initialize when the application starts. Entering false causes initialization of all beans to be delayed.

    Setting com.ibm.websphere.ejbcontainer.initializeEJBsAtStartup to either true or false takes precedence over any Start EJB at Application Start settings made on individual EJB types.

  12. Select OK.


What to do next

This task can also be done by using an assembly tool.

+

Search Tips   |   Advanced Search