activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: activemq-cpp-library-3.8.2 :client throwing exception while connecting to the broker
Date Wed, 09 Jul 2014 10:07:29 GMT
On 07/09/2014 04:50 AM, Suresh Bollabathula wrote:
> Hi
>
> I am using RHEL6 linux platform.
>
> My client code looks like this
>
> ActiveMQConn::connectToBroker(/*arguements*/)
> {
>
>           createMQConnFactory(strBrokerURI);
>           createMQConnection();
>           ....
>           ....
> }
>
> ActiveMQConn::createMQConnFactory(/*arugements*/)
> {
>           mConnectionFactory = new ActiveMQConnectionFactory(strBrokerURI);
>           ...
>           ...
>
> }
>
> ActiveMQConn::createMQConnection(/*arguments*/)
> {
>         mConnectionFactory->createConnection();            //getting
> exception here
> }
>
>
> >From my application logs I can see
>
> CMS Session acknowledgement mode set to 0.
> Successfully created the CMS Connection Factory object for the connection
> URI .....
> Failed to create the CMS Connection object for the activemq broker
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/activemq-cpp-library-3-8-2-client-throwing-exception-while-connecting-to-the-broker-tp4682968p4683010.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
Did you remember to initialize the library?
activemq::library::ActiveMQCPP::initializeLibrary();

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


Mime
View raw message