Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread CB4
I was able to configure my broker programatically within my startup mbean using the following without jmx conflicts: BrokerService broker = org.apache.activemq.broker.BrokerFactory.createBroker("broker:(vm://localhost)"); broker.setUseJmx(true); broker.setPersistent(false); broker.sta

Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread CB4
OK so I have narrowed this down to the amq:broker element behaves badly in spring or in spring within JBoss. I changed my broker name to localhost2. Spring or JBoss appears to be registering this mbean twice. Anybody have any ideas on how to fix this?

Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread CB4
So I tried changing my connectionFactory to use the following URL brokerURL="vm://localhost?create=false" This did not solve my problem. Ordering does not seem to matter. I get this issue regardless of the ordering. -- View this message in context: http://www.nabble.com/Configuring-Embedded

Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread CB4
I forgot to mention that if I omit the amq:broker element from my context everything works just fine as the connectionFactory created the broker with default behavior (using the vm URI). However this won't do it for me as I need to configure the broker with my own settings. -- View this message

Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread CB4
Here is the full stack trace: 2008-10-01 09:29:31,059 ERROR main [org.apache.activemq.broker.BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: javax.management.InstanceAlreadyExistsException: org.apache.activemq:BrokerName=localhost,Type=Broker already registered. javax.manageme

Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread CB4
Spring 2.5.1 ActiveMQ 5.1.0 JBoss 4.2.1 I can not get the embedded broker configured using Spring context configuration. I've tried pretty much every permutation and parameter for the broker but the result is always the same. I am beginning to think there is an issue with the way activemq regis