activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bo <angry.grem...@gmail.com>
Subject ActiveMQ - CreateSession failover timeout after a connection is resumed
Date Thu, 02 Aug 2012 13:29:10 GMT
I'm using ActiveMQ 5.6.0 and ActiveMQ NMS client.

I connect to the broker using the follow code:

var connectionFactory = new ConnectionFactory(
    "failover:(tcp://localhost:61616)?transport.timeout=5000"
    );

connection = connectionFactory.CreateConnection();    
connection.Start();

connection.ConnectionResumedListener += OnConnectionResumed;

Then I stop the broker and start it again. After that in the method
OnConnectionResumed

private void OnConnectionResumed()
{
    var session = connection.CreateSession();

    ...
}

I always get the failover timeout exception when try to create a session.

What am I doing wrong?

Thanks



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CreateSession-failover-timeout-after-a-connection-is-resumed-tp4654721.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message