You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by nysalsa <ny...@gmail.com> on 2014/08/22 12:25:27 UTC

One consumer out of two doesn't receive messages sent to a topic

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
ActiveMQConnectionFactory(SingltProv.INSTANCE.getStringProperty(KEY_BROKER_URL)); 
// failover://tcp://127.0.0.1:61616connection =
connectionFactory.createConnection(SingltProv.INSTANCE.getStringProperty(KEY_BROKER_USERNAME),SingltProv.INSTANCE.getStringProperty(KEY_BROKER_PASSWORD));connection.start();/*
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://127.0.0.1:61617connection =
connectionFactory.createConnection(username,
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: http://activemq.2283324.n4.nabble.com/One-consumer-out-of-two-doesn-t-receive-messages-sent-to-a-topic-tp4684939.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: One consumer out of two doesn't receive messages sent to a topic

Posted by nysalsa <ny...@gmail.com>.
Thanks for the reply, monday I'll give it a try.
Rob
On Aug 22, 2014 6:52 PM, "artnaseef [via ActiveMQ]" <
ml-node+s2283324n4684954h31@n4.nabble.com> wrote:

> Try adding the parenthesis with the failover URL:
>
> failover://(tcp://127.0.0.1:61616)
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://activemq.2283324.n4.nabble.com/One-consumer-out-of-two-doesn-t-receive-messages-sent-to-a-topic-tp4684939p4684954.html
>  To unsubscribe from One consumer out of two doesn't receive messages sent
> to a topic, click here
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4684939&code=bnlzYWxzYUBnbWFpbC5jb218NDY4NDkzOXwtODAyNjM0NDg2>
> .
> NAML
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://activemq.2283324.n4.nabble.com/One-consumer-out-of-two-doesn-t-receive-messages-sent-to-a-topic-tp4684939p4684963.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: One consumer out of two doesn't receive messages sent to a topic

Posted by artnaseef <ar...@artnaseef.com>.
Try adding the parenthesis with the failover URL:

failover://(tcp://127.0.0.1:61616)



--
View this message in context: http://activemq.2283324.n4.nabble.com/One-consumer-out-of-two-doesn-t-receive-messages-sent-to-a-topic-tp4684939p4684954.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.