Problem:
More than once instance of Java 'Message Driven Bean' is processing just one message (put in the JMS queue) at exactly same time.
How can I ensure that one message is processed only once by a 'Message Driven Bean'.
I have deployed a Java Message Driven Bean as below in Weblogic 12c.
MDB
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "connectionFactoryJndiName", propertyValue = "jms/notConnectionFactory"),
@ActivationConfigProperty(propertyName = "destinationJndiName", propertyValue = "jms/notScannerQueue")
})
public class AttachmentMDB implements MessageListener {