How to Configure Bean Pools for Session and Message-Driven Beans using the Management Console or Configuration File for Jboss EAP 7.0 and Jboss AS 6.1.0.Final
I found solution for creating and editing the bean pool configuration for Jboss version EAP 6.0
I need same solution for both Jboss EAP 7.0 and Jboss AS 6.1.0.Final ?
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html/Administration_and_Configuration_Guide/Create_a_Bean_Pool1.html
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Administration_and_Configuration_Guide/Edit_a_Bean_Pool1.html
Worker MDB:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName="destinationType"
, propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination"
, propertyValue="queue/replenish")
@ActivationConfigProperty(propertyName=”minSessions”
, propertyValue=”25”)
@ActivationConfigProperty(propertyName=”maxSessions”
, propertyValue=”50”)
})
I need same solution for both Jboss EAP 7.0 and Jboss AS 6.1.0.Final ?
[ How To create or edit bean pools, “Create a Bean Pool” and , “Edit a Bean Pool” using the Management Console and the CLI tool for both Jboss EAP 7.0 and Jboss AS 6.1.0.Final ?
slsb-strict-max-pool
mdb-strict-max-pool ]
Responses
Hi Hareesh,
For MBDs, have a look at the Configuring Messaging Guide. I think this section on MDB Thread Pools may help you.
For EJBs, I think this section on EJB thread pools in the Developing EJB Applications guide may help.
If you need further help, I'm sure our support team will be able to address your specific situation if you open a support request.
The MDBS are created only on demand if you see only 10 being created it means that there is no need for more.
I think that the @Pool annotation just binds a MDB to a specific pool defined in the standalone*.xml file, the default is the mdb-strict-max-pool. I don'
/subsystem=ejb3/strict-max-bean-instance-pool=mdb-strict-max-pool:write-attribute(name=max-pool-size,value=50)
You can find the documentation for the @Pool annotation in the Jboss EAP public API documentation that can be downloaded from the customer portal. Be careful since there seems to be lots of Web sites that describe the @Pool annotation but they are not applicable to EAP 7.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
