[rabbitmq-discuss] Channel thread safety in Java client

Matthias Radestock matthias at rabbitmq.com
Sun Jul 17 10:29:57 BST 2011


On 07/07/11 17:16, Jiri Krutil wrote:
> You say that a client application may continue to use a Channel from its
> main thread even if the RabbitMQ client library uses the same Channel
> for async receiving.


> How is the use of a Channel from the RabbitMQ client library connection
> thread sychronized with the use of the same Channel from the client
> application thread?

That synchronisation happens internally in the RabbitMQ client library.

> Is such concurrent Channel access different from a situation when two
> client application threads access the same Channel concurrently?

Yes. Don't do that.



More information about the rabbitmq-discuss mailing list