Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.8.2
-
None
-
None
-
Windows
Description
The following code should reproduce this issue :
#include <activemq/library/ActiveMQCPP.h>
#include <activemq/core/ActiveMQConnectionFactory.h>
#include <activemq/commands/ActiveMQQueue.h>
using namespace cms;
int main()
{
try
{
activemq::library::ActiveMQCPP::initializeLibrary();
activemq::core::ActiveMQConnectionFactory connectionFactory( "tcp://localhost:61616" );
auto connection = connectionFactory.createConnection();
connection->start();
auto session = connection->createSession( Session::SESSION_TRANSACTED );
activemq::commands::ActiveMQQueue queue( "testqueue" ); //sometimes it doesn't crash if the queue is empty so it should have atleast a message
while ( 1 )
}
catch ( const std::exception& e )
while ( 1 ) {} //wait, sometimes an activemq thread fails
}