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, all beans within the
server are initialized at each application's start time.
About this task
By default, the WebSphere Application Server's Enterprise JavaBeans
(EJB) Container delays the initialization or 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
- Open the administrative console.
- Select Servers.
- Select Application Servers.
- Select the server you want to configure.
- In the Server Infrastructure area, select Java and Process Management.
- In the Server Infrastructure area, select Process Definition.
- Select Servant process type.
- In the Additional Properties area, select Java Virtual Machine.
- In the Additional Properties area, select Custom Properties.
- Select the New box.
- In the Name entry field, type com.ibm.websphere.ejbcontainer.initializeEJBsAtStartup.
- In the Value entry field, type true. Entering true causes
all Enterprise JavaBeans to initialize when your application starts. Entering false causes
initialization of all beans to be delayed.
- Select OK.