I have a WebLogic (12.1.3) cluster set up with two managed servers. Each server has the same EAR deployed to it. The EAR contains two message-driven beans (MDB) listening to the same distributed JMS topic.
Whenever a message is sent to the JMS topic, only one of the MDBs receives it. Does anyone have a suggestion of what the cause might be? I suspect it could be all of the different configuration options that WebLogic has for MDB topic subscriptions, but I have tried all that I can think of without success.
Any help would be appreciated.
@MessageDriven for MDB1
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName="destinationJndiName", propertyValue="jms/ObjectCreatedTopic"),
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
@ActivationConfigProperty(propertyName="subscriptionDurability", propertyValue="Durable"),
@ActivationConfigProperty(propertyName="topicMessagesDistributionMode", propertyValue="One-Copy-Per-Application"),
@ActivationConfigProperty(propertyName="distributedDestinationConnection", propertyValue="LocalOnly")
}, name="ObjectCreatedListener1")
@MessageDriven for MDB2
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName="destinationJndiName", propertyValue="jms/ObjectCreatedTopic"),
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
@ActivationConfigProperty(propertyName="subscriptionDurability", propertyValue="Durable"),
@ActivationConfigProperty(propertyName="topicMessagesDistributionMode", propertyValue="One-Copy-Per-Application"),
@ActivationConfigProperty(propertyName="distributedDestinationConnection", propertyValue="LocalOnly")
}, name="ObjectCreatedListener2")