activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <...@artnaseef.com>
Subject Re: Receiving over IP and port using TCP
Date Mon, 20 Oct 2014 22:37:56 GMT
That code is trying to communicate with the broker without using the broker's
protocol (openwire).  So, the broker is really complaining that it cannot
properly parse the content.

The correct way to use TCP/IP to connect to the broker is to create an
ActiveMQConnectionFactory() using the tcp transport (like this for
localhost: tcp://localhost:61616), and then use the ActiveMQConnection to
create a session and producer, then send a message.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Receiving-over-IP-and-port-using-TCP-tp4686563p4686567.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message