activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From undecided <costas.zacharia...@point72.com>
Subject System.IO.EndOfStreamException when closing connection in NMS
Date Wed, 11 Nov 2015 14:55:35 GMT
Connecting like this
        amqStuff = new AMQStuff();
         amqStuff._factory = new
ConnectionFactory("failover:(tcp://127.0.0.1:61616)");
         amqStuff._connection = amqStuff._factory.CreateConnection("admin",
"admin");
         amqStuff._session = amqStuff._connection.CreateSession();
         amqStuff._topic = amqStuff._session.GetTopic("TEST");
         amqStuff._consumer =
amqStuff._session.CreateConsumer(amqStuff._topic);

Closing like this:
if (amqStuff != null)
         {
             amqStuff._consumer.Close();
             amqStuff._session.Close();
             amqStuff._connection.Stop();
             amqStuff._connection.Close();
             amqStuff = null;
         }

The exception is thrown at the _connection.Close()

This is with the default windows installation. I see the connection come and
go on the web console.
Thanks





--
View this message in context: http://activemq.2283324.n4.nabble.com/System-IO-EndOfStreamException-when-closing-connection-in-NMS-tp4703853.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message