Polished example
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/426bce98 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/426bce98 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/426bce98 Branch: refs/heads/master Commit: 426bce98b655a8878a6e9fbe6bf34a147aeec530 Parents: 112dff8 Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Aug 7 14:10:07 2014 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Aug 7 14:10:07 2014 +0200 ---------------------------------------------------------------------- .../src/main/resources/META-INF/spring/camel-context.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/426bce98/examples/camel-example-pojo-messaging/src/main/resources/META-INF/spring/camel-context.xml ---------------------------------------------------------------------- diff --git a/examples/camel-example-pojo-messaging/src/main/resources/META-INF/spring/camel-context.xml b/examples/camel-example-pojo-messaging/src/main/resources/META-INF/spring/camel-context.xml index 0807162..b9fa6f5 100644 --- a/examples/camel-example-pojo-messaging/src/main/resources/META-INF/spring/camel-context.xml +++ b/examples/camel-example-pojo-messaging/src/main/resources/META-INF/spring/camel-context.xml @@ -27,7 +27,7 @@ http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"> <!-- This creates an embedded ActiveMQ Broker --> - <broker xmlns="http://activemq.apache.org/schema/core" useJmx="true" persistent="false" + <broker xmlns="http://activemq.apache.org/schema/core" useJmx="true" persistent="false" useShutdownHook="false" brokerName="myBroker" id="broker"> <transportConnectors> <transportConnector uri="vm://myBroker"/> @@ -37,7 +37,7 @@ <!-- Lets connect the Camel ActiveMQ component to the embedded broker. See http://camel.apache.org/activemq.html for more information. --> - <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"> + <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" depends-on="broker"> <property name="brokerURL" value="vm://myBroker"/> </bean>