This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

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.

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.