|
|
InstanceAlreadyExistsException
NEWBIE QUESTION
Hi folks,
I am trying to set up a very simple sender -gt; consumer connection. Obviously there is a problem with ActiveMQ JMS Message Broker.
2011-02-17 08:48:05,410 [tomcat-from--2] ERROR org.apache.activemq.broker.BrokerService - Failed to start ActiveMQ JMS Message Broker. Reason: javax.management.InstanceAlreadyExistsException: org.apache.activemq:BrokerName=localhost,Type=Brok er
How to configure the JMS ConnectionFactory to connect to the existing ActiveMQ Broker on tomcat?
This is my current configuration which does NOT work:
Code:lt;!-- JMS ConnectionFactory to use for ActiveMQ, configuring the embedded broker using XML --gt; lt;amq:connectionFactory brokerucl=quot;vm--localhostquot; id=quot;jmsFactoryquot;/gt;
lt;!-- JMS ConnectionFactory to use for Spring JMS template --gt; lt;bean class=quot;org..jms.connection.CachingConnectionFactoryquot; id=quot;cachingConnectionFactoryquot;gt; lt;property name=quot;targetConnectionFactoryquot;gt; lt;ref local=quot;jmsFactoryquot;/gt; lt;/propertygt; lt;/beangt;
Help is appreciated very much!
Thanks in advance,
Dominik |
|