Nov 20th, 2012, 10:12 AM
Can you use more than one connection factory at a time?
Is it possible to create 2 (or more) connection factories then when creating queues, and exchanges, specify which connection factory to use?
I can see <rabbit:listener-connection> and <rabbit:template> have a connection factory attribute but I can't see anything similar for <rabbit:queue> and <rabbit:exchange>.
This is for a system which 'straddles' two different application environments each of which have their own RabbitMQ brokers. We can't run both environments on the same broker as there will be name clashing and messages going to the wrong system.