Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-02 Thread Bruce Snyder
On Thu, Oct 2, 2008 at 3:37 AM, Dejan Bosanac <[EMAIL PROTECTED]> wrote: > If you are taking this route, you can try defining your broker > configuration in a separate xml file and do something like > > BrokerService broker = BrokerFactory.createBroker(new > URI("xbean:activemq.xml")); > broker.sta

Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-02 Thread Dejan Bosanac
If you are taking this route, you can try defining your broker configuration in a separate xml file and do something like BrokerService broker = BrokerFactory.createBroker(new URI("xbean:activemq.xml")); broker.start(); it will be easier to configure it that way. Cheers -- Dejan Bosanac htt

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 James Strachan
2008/10/1 James Strachan <[EMAIL PROTECTED]>: > 2008/10/1 CB4 <[EMAIL PROTECTED]>: >> >> 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

Re: Configuring Embedded Broker with Spring/JBoss JMX issues

2008-10-01 Thread James Strachan
2008/10/1 CB4 <[EMAIL PROTECTED]>: > > 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

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