activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Active MQ broker is created even without config
Date Thu, 14 Feb 2013 20:05:34 GMT
Looks like it's trying to start a new broker. can you post the config you
use for starting the broker in the first app?


On Thu, Feb 14, 2013 at 11:59 AM, newUser06 <bhuvanalakshmikn@gmail.com>wrote:

> Thanks for the information. I have ordered the way the applications start
>
> First application - starts the broker ,  creates connection to the same
> broker and starts listening to some queues
> Second application - creates connection to the same broker and starts
> listening to different queues
>
> Broker URL is vm://localhost.
>
>
> When i do this, I get the following Exception in the second application.
> Can
> you please let me know how to resolve this ?
>
> 2013-02-14 10:51:36,932 [taskExecutor-5] ERROR o.a.a.b.BrokerService:
> Failed
> to start ActiveMQ JMS Message Broker (localhost, null). Reason:
> javax.management.InstanceAlreadyExistsException:
> org.apache.activemq:BrokerName=localhost,Type=Broker
> javax.management.InstanceAlreadyExistsException:
> org.apache.activemq:BrokerName=localhost,Type=Broker
>         at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
> ~[na:1.6.0_17]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown
> Source) ~[na:1.6.0_17]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown
> Source) ~[na:1.6.0_17]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown
> Source) ~[na:1.6.0_17]
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown
> Source) ~[na:1.6.0_17]
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown
> Source) ~[na:1.6.0_17]
>         at
>
> org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:308)
> ~[activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:65)
> ~[activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.broker.BrokerService.startManagementContext(BrokerService.java:2228)
> ~[activemq-core-5.6.0.jar:5.6.0]
>         at
> org.apache.activemq.broker.BrokerService.start(BrokerService.java:516)
> ~[activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:124)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:54)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:252)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:267)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:239)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185)
> [activemq-core-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:139)
> [activemq-pool-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:123)
> [activemq-pool-5.6.0.jar:5.6.0]
>         at
>
> org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:94)
> [activemq-pool-5.6.0.jar:5.6.0]
>         at
>
> org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
> [spring-jms-2.5.6.jar:2.5.6]
>         at
>
> org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:378)
> [spring-jms-2.5.6.jar:2.5.6]
>         at
>
> org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:363)
> [spring-jms-2.5.6.jar:2.5.6]
>         at
>
> org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:785)
> [spring-jms-2.5.6.jar:2.5.6]
>         at
>
> org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:767)
> [spring-jms-2.5.6.jar:2.5.6]
>         at
>
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:898)
> [spring-jms-2.5.6.jar:2.5.6]
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Active-MQ-broker-is-created-even-without-config-tp4663390p4663455.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message