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