On 7/6/07, bobsponge <[EMAIL PROTECTED]> wrote:
Hello, I'm developing a web application and for some reasons a multi-brokers environment is needed. By multi-broker I mean that I need two independent instances of brokers running, each one configured to access different queues (with different sets of journal and db persistence schemes). I don't really know if this is possible.
Sounds fine. Though why have 2 brokers in the same JVM?
Every time I run the application the first broker is created with no problems but the second one always shows the next exception: javax.management.InstanceAlreadyExistsException: org.apache.activemq:BrokerName=localhost,Type=Broker The brokers are created with tcp transports and different ports: tcp://localhost:30000 and tcp://localhost:30001 I've tried to change the broker names but it does not works at all... Does any body know if it's possible to run two (or more) brokers in the same application at the same time?
Hopefully if you run 2 brokers with different names, the JMX stuff should just work. If you do that, show us the stack trace you get & we can figure it out -- James ------- http://macstrac.blogspot.com/
