activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From activemq-newbe0911 <>
Subject How to avoid message redelivery ActiveMQ 5.8 resource adapter failover
Date Wed, 11 Sep 2013 18:33:16 GMT
I have deployed a EJB that contains Conumer MDBs with destinationType defined
as "javax.jms.Topic".  
I have deployed ActiveMQ 5.8 Resource Adapter to Glassfish 3.1.1 container
and configure the deployed adapter to connect to the local external broker.
The resource adapter is configured to failover to a remote host failover. 
The ServerURL is defined
When the localhost broker is disabled or the connection is lost, failover
occurs to the remote host.
Messages are forwarded to the remote host consumer MDB but the localhost
consumer MDB continues to receives the same messages. How can I configure
the resource adapter to forward messages to remote host MDB and not
redeliver the messages localhost MDB?
I'm using activemq resource adapter 5.8 and glassfish 3.1.1
The following snippet is from my producer code:
String consumerActiveMQTopicConnFactory = (String)
TopicConnectionFactory connectionFactory = (TopicConnectionFactory)
connection = connectionFactory.createTopicConnection();
TopicSession session = connection.createTopicSession(false,
String consumerActiveMQTopic = (String)
Destination  destination = session.createTopic(consumerActiveMQTopic );
MessageProducer messageProducer = session.createProducer(destination);
sendMessagesToTopic(session, messageProducer);

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message