I've got a MDB that is a JMS Queue listener using ActiveMQ as the broker.
According to the ActiveMQ docs, you set destination options using URL query syntax:
http://activemq.apache.org/destination-options.html
I'm trying to configure my MDB to be an exclusive consumer for the queue like so:
| @MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName="destinationType",
propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination",
propertyValue="FOS?consumer.exclusive=true"),
| @ActivationConfigProperty(propertyName="acknowledgeMode",
propertyValue="Auto-acknowledge"),
| @ActivationConfigProperty(propertyName="subscriptionDurability",
propertyValue="NonDurable")
| })
| @ResourceAdapter("activemq-rar.rar")
|
The destination options do not seem to be making it through, as I've got 10 messages
getting processed at once. Anybody see anything I'm doing wrong? Is there something
else I need to do to turn off pooling in JBoss?
no clustering
JBoss 5.0.0.GA
ActiveMQ 5.2.0.GA
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222177#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...