activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: System.IO.EndOfStreamException when closing connection in NMS
Date Wed, 11 Nov 2015 15:43:46 GMT
On 11/11/2015 09:55 AM, undecided wrote:
> 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.
>
Always a good idea to share the versions you are working with.

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.redhat.com 
twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message