camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hooty223 <>
Subject Camel standalone with embedded activemq broker
Date Mon, 22 Jun 2015 19:09:33 GMT
I am running a standalone camel app with an embedded activemq broker where
the broker and route definitions are defined in xml file.

I just created a timer to trigger messages to be sent to a queue.

When I run in eclipse, everything is fine - both producers and consumers are
happy. However, when I run outside of the eclipse environment, I get the
following exceptions:

nested exception is javax.jms.JMSException: Could not create Transport.
Reason: Broker named 'myBroker' does not exist.

this is my broker.xml file:
	<broker id="broker" brokerName="myBroker" useShutdownHook="false"
		useJmx="true" persistent="true" dataDirectory="activemq-data"

			<transportConnector name="vm" uri="vm://myBroker" />
			<transportConnector name="tcp" uri="tcp://" />

this is my camel-route.xml file:
	<import resource="classpath*:broker.xml " />

	<bean id="activemq"
		<property name="brokerURL"
			value="vm://myBroker?create=false&amp;waitForStart=5000" />

    <camelContext id="camel" xmlns="">
            <from uri="timer:foo?period=1s" />
                <simple>Message at ${date:now:yyyy-MM-dd HH:mm:ss}</simple>
            <to uri="activemq:queue:inbox" />
            <from uri="activemq:queue:inbox" />
            <to uri="activemq:queue:outbox" />


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message