servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kdnigh <>
Subject How to create a camel route to remote ActiveMQ broker
Date Wed, 22 Jul 2015 15:02:25 GMT
Hi everyone,

I'm trying to send a jms message to a remote activemq broker on a remote
servicemix instance. I believe I would first need to create an
ActiveMQConnectionFactory object and add that to the default camelContext.
If this is correct, how do I access the default camelContext (which is just
a spring bean), from my routebuilder class? I was thinking something like:

public class JettyRouteBuilder extends SpringRouteBuilder {

    public void configure() {

I'm not sure about the syntax in the .to(...) method or how i extract
camelContext from serviceMix since I've defined it in:

<beans xmlns=""

    <camel:camelContext id="camel5">


Thanks in advance for any help!

View this message in context:
Sent from the ServiceMix - Dev mailing list archive at

View raw message