|
Problem(Abstract) |
How do I adjust the EJB container pool size for an
individual EJB? |
|
|
|
Resolving the
problem |
To adjust the EJB container pool size for an individual
EJB you must add a system property to the server the EJB is on. The
property value must be of the form:
APPLICATION_NAME#MODULE_NAME#BEAN_NAME=min,max
To find out these 3 pieces of information (APPLICATION_NAME, MODULE_NAME
and BEAN_NAME), open the administrative console and do the following:
- APPLICATION_NAME:
- Navigate to Applications -> Enterprise Applications ->
<application name>
- The value is the Name property on this page.
- MODULE_NAME
- Navigate to Applications -> Enterprise Applications ->
<application name> -> EJB Modules
- There should be one or more links here for the different EJB modules
in this application. The value is the name of the link for the EJB module
that holds the EJB.
- BEAN_NAME:
- Navigate to Applications -> Enterprise Applications ->
<application name> -> EJB Modules -> <ejb module name>
-> View Deployment Descriptor
- Open the bean section for the bean you are looking for, i.e. Entity
Beans if this is an entity bean.
- There should be an EJB Name property in the tree you just opened. The
value is the EJB Name of the EJB you are setting the property for.
The min and max values are the minimum and maximum values for the pool
size for this EJB.
The following images contain examples of finding these names. The examples
turn into the following value (60 and 100 are arbitrary numbers used as
the minimum and maximum values in this example):
DefaultApplication.ear#Increment.jar#Increment=60,100
 
To verify that the value has been changed, the following entry should
appear in the SystemOut.log file for the server the EJB is deployed on:
[10/26/04 18:36:35:719 CDT] 3cd8aa36 BeanMetaData I CNTR0060I: (Min,Max)
pool size is (60,100) for bean
com.ibm.defaultapplication.IncrementBean |
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|