activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nysalsa <>
Subject One consumer out of two doesn't receive messages sent to a topic
Date Fri, 22 Aug 2014 10:25:27 GMT
Hi,I'm facing the problem in subject.The system is done by a broker (in
future a cluster of), a couple of consumers and some producers.Initially
I've setup one producer and messages sent arrive to one consumer only.I've
the broker configured with two TransportConnectors:First consumer connects
to "openwire" connector (follows the code) from the company intranet, this
is the one that doesn't receive any message.ConnectionFactory
connectionFactory = new
// failover://tcp:// =
Creating session for sending messages */session =
connection.createSession(false, Session.AUTO_ACKNOWLEDGE);/* Getting the
topic */Destination destination = session.createTopic(TOPIC_NAME);/*
Creating the messageConsumer */messageConsumer =
session.createConsumer(destination);Second consumer connects to "nio+ssl"
connector (follows the code) from the public Internet, this is the one that
receives all the messages.ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(url);   //
failover://ssl:// =
password);connection.start();session = connection.createSession(false,
Session.AUTO_ACKNOWLEDGE);Destination destination;destination =
session.createTopic(resourceName);consumer =
session.createConsumer(destination);Have you any suggestion?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message