activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamo <>
Subject Spring Embedded broker Journal already opened error
Date Mon, 07 Aug 2006 23:01:49 GMT

I'm getting the following error when trying to start an embedded broker in my
Spring web app (spring 2.0rc2 & activemq 4.0.1):
BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: Journal is already opened by this application.

According to a couple of posts that I've found (
& ),
with an embedded broker, the connection factory can start before the broker
creating 2 instances of activemq (and the error).  But, as I understand it,
I'm creating the broker and connection factory in the same bean, so I don't
see how to seperate the two and add the suggested "depends-on"???

Can you explain how to work around the problem given the following config:

	<!-- JMS ConnectionFactory to use - ActiveMQ -->
	<bean id="jmsFactory"
		<property name="brokerURL" value="vm://localhost" />

	<!-- Spring JMS Template (used by queueEmailService)-->
	<bean id="bizLinxJmsTemplate" 		
		<property name="connectionFactory" ref="jmsFactory" />
		<property name="defaultDestination" ref="destination" />

	<!-- Queue to use-->
	<bean id="destination"
       		<constructor-arg value="bizLinxEmail" />
	<!-- QueueEmailService: the email queuer service - queues email to jms -->
	<bean id="queueEmailService"
		<property name="jmsTemplate" ref="bizLinxJmsTemplate" />
	<!-- SendEmailService: the email sender service - receives jms messages and
sends to SMTP -->
	<bean id="sendEmailService"
	<!-- JMS Listener Container - routes JMS Messages to SendEmailService -->
	<bean id="listenerContainer"
		<property name="connectionFactory" ref="jmsFactory" />
		<property name="destination" ref="destination" />
		<property name="messageListener" ref="sendEmailService" />

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message