activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <>
Subject ActiveMQ-CPP v3.7.0 : how to close a connection blocked inside a start() when using failover
Date Wed, 05 Jun 2013 21:15:34 GMT

I have a situation in which i need to close a client cms::connection block
inside a cms::connection::start(), from a different thread. In this case, no
broker as been started yet and i'm using failover. so the thread is blocked
inside connection.start() (which is expected). However to close and
terminate this connection, i tried calling cms::connection::close() on this
connection (from a different thread) and expecting a cms::Exception, but
this seems to be failing (see stack trace below).

What is the correct way to close a connection that is blocked inside a
connection::start() ?

- pure virtual function call

06/03/2013 11:59:02 **** STACK TRACE **** called from conntest.cpp line: 39

Thread 0x1cc8  7368
autopsy \utility.cpp (1078) 19 bytes
Purecall \conntest.cpp (39) 13 bytes
_purecall f:\dd\vctools\crt_bld\self_x86\crt\src\purevirt.c (54) 0 bytes
decaf::util::concurrent::Lock::lock \decaf\util\concurrent\lock.cpp (55) 0
decaf::util::concurrent::Lock::Lock \decaf\util\concurrent\lock.cpp (34) 0
`anonymous namespace'::ResponseFinalizer::~ResponseFinalizer
(64) 25 bytes
(228) 51 bytes
(1271) 84 bytes
(1352) 58 bytes
activemq::core::ActiveMQConnection::start \activemq-cpp- library
3.7.0\src\main\activemq\core\activemqconnection.cpp (857) 0 bytes

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message