Re: Problem Adding ActiveMQ Broker URL to Camel Context Using Java DSL Type Project

2015-04-02 Thread Wilkerson, Daniel
Hi everyone. I figured out the issue here (sort of). The camel main class appears to not provide the Camel context correctly when the getOrCreateCamelContext() is called. I tried for hours yesterday trying to make this give me the correct context so I could add the ActiveMQ component in with th

Re: Problem Adding ActiveMQ Broker URL to Camel Context Using Java DSL Type Project

2015-04-01 Thread Willem Jiang
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