[jboss-user] [JBossMQ] - Non-transactional MDB bean

hjhjr4 do-not-reply at jboss.com
Sun Jul 5 14:52:50 EDT 2009


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 {
  |    ...
  | }



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241851#4241851

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241851



More information about the jboss-user mailing list