mel.apache.org>"
mailto:users@camel.apache.org>>
Subject: Problem Adding ActiveMQ Broker URL to Camel Context Using Java DSL
Type Project
I'm trying to add the correct tcp:// connection url to the camel context in a
standalone/Java DSL camel app and am using a boot() method t
Hi,
You should call the bind method instead of main.getOrCreateCamelContext() to
add the configured the ActiveMQComponent like this.
main.bind(
"activemq",
amq.activeMQComponent("tcp://ourbrokerserver.workplace.com:61616"));
main.getOrCreateCamelContext() just create a new camel map per call
I'm trying to add the correct tcp:// connection url to the camel context in a
standalone/Java DSL camel app and am using a boot() method that was pulled from
example code on the camel site. In my boot() method I'm trying to add the
correct URL to the camel context but it's not getting added. Whe