On Wed, 2011-11-16 at 12:02 -0800, mrdiesel wrote: > try{ > if( session != NULL ) session->close(); > if( connection != NULL ) connection->close(); > }catch (CMSException& e) {e.printStackTrace();} > > I m getting an exception as follows: > > The Decaf Threading API is in a Shutdown State. > FILE: decaf/lang/Thread.cpp, LINE: 616 > FILE: activemq/core/ActiveMQSession.cpp, LINE: 172 > > Why is this happening? > > how can i avoid this? this is causing problems when i try to get more > messages.
My guess would be that you called shutdownLibrary before you destroyed all the CMS resources, that's about the only reason I can think of that you would be in this state. > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4077689.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Tim Bish ------------ FuseSource Email: tim.b...@fusesource.com Web: http://fusesource.com Twitter: tabish121 Blog: http://timbish.blogspot.com/