Announcement Announcement Module
No announcement yet.
Multiple vhosts Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple vhosts

    I have found a couple of threads and bugs (one open, one closed) related to accessing multiple vhosts from one spring-integration instance:

    the bugs being:

    Are there any code examples that fairly completely show a setup of how this is done?
    There is enough hints in the threads I might be able to stumble across a workable solution, but I am new enough with both spring-integration and rabbitmq that a solid implementation of handling multiple vhosts might take me a bit.

    Our initial development prototype did not have the multiple vhosts and the setup worked fine, but as we worked toward a more secure, production ready configuration it seemed we needed at least 3 or 4 vhosts to handle internal calls versus external, as well as potential naming conflicts when we start collaborating with business partners.

    In any case I would like to understand how to handle the multiple vhost scenario in case it becomes a requirement. Any pointers to examples or documentation is appreciated. I noticed that the two threads are several months old and there were hints that more work in this area was maybe in progress. I would be interested in seeing this if it is available somewhere.

  • #2
    I don't think it's complicated to use virtual hosts - there's a convenience setter on CachingConnectionFactory (passed through to the Rabbit client) for the vhost name (default "/"). If you need help setting up vhosts on the server you could look at the Rabbit docs or post on [email protected], but again I don't think it's difficult (rabbmqctl will tell you everything).

    Reading the links you posted I infer that you want to use a single connection factory for multiple vhosts. You could follow the hint in AMQP-45 to implement one yourself, I guess - it wouldn't be hard, and you could contribute it back to the project. Or wait for 1.1.
    Last edited by Dave Syer; Jun 28th, 2011, 03:36 AM.