You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2008/03/20 16:09:40 UTC

How can I connect to ActiveMq broker running outside of my camelcontext's VM ?

Hi,

How should I configure my camelcontext in order to connect to an ActiveMq
broker running outside of my camelcontext's VM ?

Let's say : 
My Camel route is defined like
From(file:///c:/production/swift?noop=false).to(jms:queue:swift.queue) and
the "jms:queue:swift.queue" is a queue defined in a ActiveMq broker running
in a separate Java VM.

Regards,

Charles
-- 
View this message in context: http://www.nabble.com/How-can-I-connect-to-ActiveMq-broker-running-outside-of-my-camelcontext%27s-VM---tp16180747s22882p16180747.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How can I connect to ActiveMq broker running outside of my camelcontext's VM ?

Posted by Gert Vanthienen <ge...@skynet.be>.
Charles,

Have a look at http://activemq.apache.org/camel/jms.html -- on the 
bottom of the page they explain how you can define multiple JMS 
components for use with Camel, but you can use the same technique for 
connecting to a remote ActiveMQ server (using e.g. a tcp:// transport )

Regards,

Gert

cmoulliard wrote:
> Hi,
>
> How should I configure my camelcontext in order to connect to an ActiveMq
> broker running outside of my camelcontext's VM ?
>
> Let's say : 
> My Camel route is defined like
> From(file:///c:/production/swift?noop=false).to(jms:queue:swift.queue) and
> the "jms:queue:swift.queue" is a queue defined in a ActiveMq broker running
> in a separate Java VM.
>
> Regards,
>
> Charles
>   


Re: How can I connect to ActiveMq broker running outside of my camelcontext's VM ?

Posted by James Strachan <ja...@gmail.com>.
On 20/03/2008, cmoulliard <cm...@gmail.com> wrote:
>
>  Hi,
>
>  How should I configure my camelcontext in order to connect to an ActiveMq
>  broker running outside of my camelcontext's VM ?
>
>  Let's say :
>  My Camel route is defined like
>  From(file:///c:/production/swift?noop=false).to(jms:queue:swift.queue) and
>  the "jms:queue:swift.queue" is a queue defined in a ActiveMq broker running
>  in a separate Java VM.

If the broker is on the same machine then using

to("activemq:swift.queue")

would do the right thing without any explicit configuration.

Otherwise you can configure the ActiveMQComponent with the brokerURL
using either Java code or in your spring.xml...
http://cwiki.apache.org/CAMEL/activemq.html

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com