[rabbitmq-discuss] How to retrieve connection/channel in order to create the subscriber service in Java from the client

Michael Klishin mklishin at gopivotal.com
Thu Jan 9 18:37:37 GMT 2014


On 9 Jan 2014, at 22:30, cw storm <cwstorm at gmail.com> wrote:

>  want to be able to use the existing open connections/channelses without creating a new connection factory for my publishing/subscribing services in my java service.  In code, how can I get the existing open  conn/channel for that queue to be able to use the say basicPublish and basicConsume apis.

RabbitMQ Java client does not keep track of opened connections. You need to pass them to the
parts of the codebase that you want to use them.

MK

Software Engineer, Pivotal/RabbitMQ




More information about the rabbitmq-discuss mailing list