activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CB4 <>
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"
            <amq:managementContext createConnector="false" />

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

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

2008-10-01 09:29:31,059 ERROR main
[] Failed to start ActiveMQ JMS
Message Broker. Reason:
org.apache.activemq:BrokerName=localhost,Type=Broker already registered.
org.apache.activemq:BrokerName=localhost,Type=Broker already registered.
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message