activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CB4 <cbr...@akorri.com>
Subject Configuring Embedded Broker with Spring/JBoss JMX issues
Date Wed, 01 Oct 2008 13:57:06 GMT

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 registers its mbeans with the JBoss MBean
server.  I saw this in activemq 4.1.0 as well which is why I upgraded to
5.1.0.  But I still get the same result.  Any help is much appreciated, I've
been stuck on this for a couple of months.

Spring application context...

    <amq:broker start="true" brokerName="localhost" persistent="false"
useJmx="true">
        <amq:managementContext>
            <amq:managementContext createConnector="false" />
        </amq:managementContext>
    </amq:broker>

    <!-- JMS ConnectionFactory to use, configuring the embedded broker using
XML -->
    <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost">
    </amq:connectionFactory>

Starting JBoss I get (Note: Spring context is intiatilzed via a jboss
startup MBean)...

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.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=localhost,Type=Broker already registered.
        at
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:761)
        at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:225)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

-- 
View this message in context: http://www.nabble.com/Configuring-Embedded-Broker-with-Spring-JBoss-JMX-issues-tp19761024p19761024.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message