[rabbitmq-discuss] Java client: Closing channel in channel shutdown listener

jiri at krutil.com jiri at krutil.com
Mon Nov 8 08:21:55 GMT 2010


Simon,

>> Can I close the connection from a channel shutdown listener?
>
> Not directly; it has the same problem. Of course, you could just  
> spin up a short-lived thread to do the closing in either case.

It seems to work even when I close the connection directly in the  
thread that invoked the shutdown listener (of connection or channel).

Can I leave it this way or am I programming by coincidence?

(Maybe this issue could also be mentioned in the Java Client API Guide.)

Cheeers
Jiri



More information about the rabbitmq-discuss mailing list