[openamq-dev] Need big help on amq_connection
Martin Sustrik
sustrik at imatix.com
Thu Aug 30 11:00:13 CEST 2007
Ni hao,
Do you use the last version of OpenAMQ, the one released last week? The
old one had a problem with termination of multiple connections.
If using new version, what you should do is:
conn1 = amq_client_connection_new (...);
sess1 = amq_client_session_new (conn1);
conn2 = amq_client_connection_new (...);
sess2 = amq_client_session_new (conn2);
... do the work here ...
amq_client_session_destroy (&sess2);
amq_client_connection_destroy (&conn2);
amq_client_session_destroy (&sess1);
amq_client_connection_destroy (&conn1);
If it still fails, can you send us a simple test program exhibiting the
behaviour?
Thanks.
Martin
lzcj4 wrote:
> HI:
> I make two amq_connection ,one used for receiving,the other one for
> sending,it works well,but when want to terminate,it just terminate
> amq_session,terminate amq_connections it make no reaction ??
> the other method,i make a amq_connection and a amq_session ,the
> session is used for receiving and sending ,it works well,when i exit the
> main method ,it makes a assert ,the assert in accessories . thanks!!
>
> ------------------------------------------------------------------------
> lzcj4
> 2007-08-30
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
More information about the openamq-dev
mailing list