Hi Tom, No, it isnt possible to bind a queue to multiple exchanges from the virtualhosts.xml file (excluding the default exchange from this, all queues are automatically bound to it with their name), you can only specify a single exchange for custom bindings for each queue in the config file.
If you are using a persistent store for the virtualhost (i.e Derby, BDB, or BDB-HA stores) and durable queues + exchanges, then you can create additional bindings (and queues and exchanges) through the managment interface which will be saved in the persistent store across broker restarts. Robbie On 17 April 2013 14:05, Tom M <[email protected]> wrote: > Is it possible to set static bindings from multiple exchanges in the > virtualhosts.xml? > The general example (below), had the queue binding to only 1 exchange. > I tried a few combinations to get it to accept bindings from 2 exchanges, > but it only seemed to set the first one. > > <queue> > <name>queue1</name> > <queue1> > <exchange>exchange1</exchange> > <routingKey>rtgkey.#</routingKey> > <durable>true</durable> > </queue1> > </queue> > > We have a HA implementation (need these queues to survive lost > connections, thus static config) and some messages to these queue are being > routed from the exchanges to multiple queues (thus needed to use routing > keys rather than direct addr to individual queues). So, our solution is to > set config on these queues with a static binding. > I can see from the maintance tool that we can set multiple bindings on a > queue, but don't know how from this config file. >
