[jboss-user] [Beginners Corner] - PoolClass in a descriptor
babernat
do-not-reply at jboss.com
Fri Dec 26 13:53:54 EST 2008
Hi,
I've been using the following annotations on an EJB 3.0 MDB in JBoss 4.2.3GA to limit the number of MDB instances that can be created. I'd like to move the configuration into descriptors so that I don't have to recompile in order to change the configuration. I (think) I understand how to handle maxSession, but how do I move the Pool Class configuration to a descriptor. Does that go in the jboss.xml file inside of the jar?
| @PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=5, timeout=10000)
| @MessageDriven(activationConfig =
| {
| @ActivationConfigProperty(propertyName="maxSession",propertyValue="5"),
| @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination",propertyValue="queue/TLEPropagationQueue")
| })
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198588#4198588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198588
More information about the jboss-user
mailing list