To Configure MDB Pool Settings
The pool for message-driven beans is similar to the pool for session beans.
By default, the container maintains a pool of message-driven beans.
To adjust the configuration of this pool, perform these steps.
- In the navigation tree, expand the Configuration node.
- Select the EJB Container node.
The Enterprise Java Beans (EJB) page opens.
- Click the MDB Settings tab.
The MDB Default Pool Settings page opens.
- In the Initial and Minimum Pool Size field, type the minimum number of
message beans to be maintained in the pool.
The default value is 0.
- In the Maximum Pool Size field, type the maximum number of beans that
the container can maintain in the pool at one time.
The default value is 32.
- In the Pool Resize Quantity field, type the number of beans that are
removed from the pool if they are idle for more than the
time specified in the Pool Idle Timeout field.
The value must be at least 0 and less than the Maximum Pool
Size value. The default value is 8.
- In the Pool Idle Timeout field, type the time, in seconds, that a
bean in the pool can remain idle before it is removed from
the pool.
After this amount of time, the bean is destroyed. A value of
0 means that a bean can remain idle indefinitely. The default value is
600.
- (Optional) In the Additional Properties section, specify additional properties.
The GlassFish Server does not define any additional properties for the MDB pool.
- To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type
the property value in the Value field.
- To modify a property, edit that property's Value field.
- To delete a property, select the checkbox to the left of the
Name field of the property that you are deleting, then click the Delete
Properties button.
- Click Save.
Tip - To return to the default settings, click the Load Defaults button, then click
Save.
- Restart the GlassFish Server.
See Also
Copyright © 2010 Oracle and/or its affiliates. All rights reserved. Legal Notices