0 Replies Latest reply on Jul 5, 2009 2:52 PM by hjhjr4

    Non-transactional MDB bean

    hjhjr4

      How to make message driven bean that does not use transactions for receiving messages (in JBoss 4.2.2)?

      Is it enough to set acknowledgeMode to Auto-acknowledge? :

      @MessageDriven(activationConfig = {
       @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
       @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/MyQueue1"),
       @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })
      public class MDB1 implements MessageListener {
       ...
      }