You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by necrosus <kr...@gmail.com> on 2006/04/27 12:55:17 UTC
create connnection hanging
Not sure i am missing something simple.
I am running activemq on linux (Centos 4.3).. (tried java 1.4 and 5)
Basically i just started up the default configuration of activemq (using
/bin/activemq). It starts fine.
Then i wanted to run a simple java program to connect to activemq so start
playing with queues and messages and the like.
using the code:
ActiveMQConnectionFactory mqFactory = new
ActiveMQConnectionFactory("tcp://localhost:61616");
Connection connection = mqFactory.createConnection();
Session session connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
etc
Anything after createConnection doesnt get excuted and the client hangs. On
activemq tI can see the connection being created.
DEBUG TcpTransport - TCP consumer thread starting
But then nothing happens until i stop the client running and it gives the
EOF exception.
Am i missing something obvious? I dont understand what is going on exactly.
It just seesm i cant get beyond createConnection
--
View this message in context: http://www.nabble.com/create-connnection-hanging-t1517490.html#a4118708
Sent from the ActiveMQ - User forum at Nabble.com.
Re: create connnection hanging
Posted by necrosus <kr...@gmail.com>.
Thanx for the reply..
Nope dont have the firewall running, well initaly i had allowed the specific
tcp port, then i had totally stopped iptables and it hasnt made a
differennce. So as far as i am concernted there shouldnt be a firewall issue
--
View this message in context: http://www.nabble.com/create-connnection-hanging-t1517490.html#a4121452
Sent from the ActiveMQ - User forum at Nabble.com.
Re: create connnection hanging
Posted by Hiram Chirino <hi...@hiramchirino.com>.
Do you have the firewall enabled?
On 4/27/06, necrosus <kr...@gmail.com> wrote:
>
> Not sure i am missing something simple.
>
> I am running activemq on linux (Centos 4.3).. (tried java 1.4 and 5)
> Basically i just started up the default configuration of activemq (using
> /bin/activemq). It starts fine.
>
> Then i wanted to run a simple java program to connect to activemq so start
> playing with queues and messages and the like.
>
> using the code:
> ActiveMQConnectionFactory mqFactory = new
> ActiveMQConnectionFactory("tcp://localhost:61616");
> Connection connection = mqFactory.createConnection();
> Session session connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
> etc
>
> Anything after createConnection doesnt get excuted and the client hangs. On
> activemq tI can see the connection being created.
> DEBUG TcpTransport - TCP consumer thread starting
>
> But then nothing happens until i stop the client running and it gives the
> EOF exception.
>
> Am i missing something obvious? I dont understand what is going on exactly.
> It just seesm i cant get beyond createConnection
> --
> View this message in context: http://www.nabble.com/create-connnection-hanging-t1517490.html#a4118708
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>
--
Regards,
Hiram