2 Replies Latest reply on Apr 1, 2009 12:01 PM by Brad Warren

    MDB: Annotations ignoring ActiveMQ destination options?

    Brad Warren Novice

      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")

      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