Via the ExceptionListener. On Sun, May 17, 2009 at 6:05 PM, Timothy Bish <tabish...@gmail.com> wrote:
> On Sun, 2009-05-17 at 04:25 -0500, Kenny Stone wrote: > > Hello, > > > > Everything is working great, except when I'm trying to cleanup my > > connections I will occasionally get this exception when the Connection > > destructor is called: > > > > decaf::io::SocketInputStream::read - The connection is broken > > FILE: decaf/net/SocketInputStream.cpp, LINE: 191 > > FILE: decaf/io/BufferedInputStream.cpp, LINE: 277 > > FILE: decaf/io/BufferedInputStream.cpp, LINE: 190 > > FILE: decaf/io/DataInputStream.cpp, LINE: 163 > > FILE: activemq/wireformat/openwire/OpenWireFormat.cpp, LINE: 268 > > FILE: activemq/transport/IOTransport.cpp, LINE: 235 > > > > Any ideas? I was thinking maybe I wasn't shutting everything down in the > > proper order or missing a stop() call. The basic order is: > > > > MessageConsumer.stop(), destructor > > MessageProducer.stop(), destructor > > Session.close() > > Connection.stop() > > Connection.close() > > Session destructor > > Connection destructor > > > > Is this an exception that you receive via the ExceptionListener > onException callback or is it thrown by one of the methods you are > calling at shutdown? > > Regards > Tim. > > > -- > Tim Bish > http://fusesource.com > http://timbish.blogspot.com/ > > > > -- Kenny Stone Connamara Systems, LLC