You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Venkat07 <ve...@gmail.com> on 2017/12/13 13:40:52 UTC
Not getting remote activemq server connection.
Hi,
I am using JMS-ActiveMq server for communicating two applications.
One application is running in one system and activemq server is running in
other remote system. I am trying to get the activemq server connection in my
main application like,
Instead of using "ActiveMQConnection.DEFAULT_BROKER_URL " used the
tcp:://192.168.xx.xx:8161/
getting exception,
[main] WARN org.apache.activemq.transport.tcp.TcpTransportFactory - path
isn't a valid local location for TcpTransport to use
ActiveMQConnection
{id=ID:DESKTOP-HI7JQDK-60532-1513171750143-1:1,clientId=null,started=false}
So please help to resolve.
Thanks,
Venkat.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-f2368404.html
Re: Not getting remote activemq server connection.
Posted by Bruce Dodson <br...@gmail.com>.
Normally ActiveMQ's Jetty HTTP server is listening on 8161, but the listener used for JMS TCP connections is on another port - typically 61616 although this is configurable. Hope that helps.
Bruce Dodson
________________________________
From: Art Licis <ar...@gmail.com>
Sent: Thursday, December 14, 2017 1:43:08 AM
To: dev@activemq.apache.org
Subject: Re: Not getting remote activemq server connection.
Try removing slash sign (/) at the end, so that it's
"tcp://192.168.xx.xx:8161",
not "tcp://192.168.xx.xx:8161/".
- Art
On Thu, Dec 14, 2017 at 8:58 AM, Venkat07 <ve...@gmail.com>
wrote:
> Hi,
>
> I have used the one colon only, i typed wrong.
>
> Still i am getting same issue and my code is like,
>
> ConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("tcp://192.168.xx.xx:8161/");
> Connection connection = connectionFactory.createConnection();
> connection.start();
>
>
> Warning like,
>
> [main] WARN org.apache.activemq.transport.tcp.TcpTransportFactory - path
> isn't a valid local location for TcpTransport to use
> ActiveMQConnection
> {id=ID:DESKTOP-HI7JQDK-61855-1513234656230-1:1,clientId=
> null,started=false}
>
>
>
> Thanks,
> Venkat.
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-
> f2368404.html
>
Re: Not getting remote activemq server connection.
Posted by Art Licis <ar...@gmail.com>.
Try removing slash sign (/) at the end, so that it's
"tcp://192.168.xx.xx:8161",
not "tcp://192.168.xx.xx:8161/".
- Art
On Thu, Dec 14, 2017 at 8:58 AM, Venkat07 <ve...@gmail.com>
wrote:
> Hi,
>
> I have used the one colon only, i typed wrong.
>
> Still i am getting same issue and my code is like,
>
> ConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("tcp://192.168.xx.xx:8161/");
> Connection connection = connectionFactory.createConnection();
> connection.start();
>
>
> Warning like,
>
> [main] WARN org.apache.activemq.transport.tcp.TcpTransportFactory - path
> isn't a valid local location for TcpTransport to use
> ActiveMQConnection
> {id=ID:DESKTOP-HI7JQDK-61855-1513234656230-1:1,clientId=
> null,started=false}
>
>
>
> Thanks,
> Venkat.
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-
> f2368404.html
>
Re: Not getting remote activemq server connection.
Posted by Venkat07 <ve...@gmail.com>.
Hi,
I have used the one colon only, i typed wrong.
Still i am getting same issue and my code is like,
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("tcp://192.168.xx.xx:8161/");
Connection connection = connectionFactory.createConnection();
connection.start();
Warning like,
[main] WARN org.apache.activemq.transport.tcp.TcpTransportFactory - path
isn't a valid local location for TcpTransport to use
ActiveMQConnection
{id=ID:DESKTOP-HI7JQDK-61855-1513234656230-1:1,clientId=null,started=false}
Thanks,
Venkat.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-f2368404.html
Re: Not getting remote activemq server connection.
Posted by Justin Bertram <jb...@apache.org>.
> tcp:://192.168.xx.xx:8161/
This URL has 2 colons after "tcp" which I don't believe is valid syntax.
Have you tried "tcp://192.168.xx.xx:8161/" instead (with just 1 colon)?
Justin
On Wed, Dec 13, 2017 at 7:40 AM, Venkat07 <ve...@gmail.com>
wrote:
> Hi,
>
>
> I am using JMS-ActiveMq server for communicating two applications.
>
>
> One application is running in one system and activemq server is running in
> other remote system. I am trying to get the activemq server connection in
> my
> main application like,
>
> Instead of using "ActiveMQConnection.DEFAULT_BROKER_URL " used the
> tcp:://192.168.xx.xx:8161/
>
> getting exception,
>
> [main] WARN org.apache.activemq.transport.tcp.TcpTransportFactory - path
> isn't a valid local location for TcpTransport to use
> ActiveMQConnection
> {id=ID:DESKTOP-HI7JQDK-60532-1513171750143-1:1,clientId=
> null,started=false}
>
>
> So please help to resolve.
>
>
>
> Thanks,
> Venkat.
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-
> f2368404.html
>