[openamq-dev] Only a single thread may register signals.

Martin Sustrik sustrik at imatix.com
Sun Dec 30 09:05:57 CET 2007


Hi,

You get the warning when you open two connections regardless of whether 
you share them between threads or not.

However, if you are not using single connection from two different 
threads, everything should be OK and you can safely ignore the warning.

Martin

Malinga wrote:
> Hi,
>
>     I have a code which will get more than one connection to the amq 
> host. So then i can see a console message saying "Only a single thread 
> may register signals. 
> <http://lists.openamq.org/pipermail/openamq-dev/2007-December/000524.html>" 
> what is this actually. I have posed this query and i have been toled 
> you are sharing connection as long as you not sharing you not getting 
> this but i don't think Im sharing connection.
>
>            icl_system_initialise(argc, argv);
>                                                     
>            icl_longstr_t* auth_data = 
> amq_client_connection_auth_plain("guest", "guest");
>            icl_longstr_t* auth_data_ = 
> amq_client_connection_auth_plain("guest", "guest");
>            
>            amq_client_connection_t* connection = 
> amq_client_connection_new (host, "/", auth_data, "sender", 0, 30000);
>            amq_client_connection_t* connection_ = 
> amq_client_connection_new (host, "/", auth_data_, "sender_", 0, 30000);
>
> -Malinga
>
>
>
> ------------------------------------------------------------------------
> Never miss a thing. Make Yahoo your homepage. 
> <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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