You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dancsi <an...@epam.com> on 2014/05/14 08:56:41 UTC

JMS consumer failover

I have a primary and a backup JMS provider/server (Tibco EMS). The backup is
running in standby mode and doesn't allow connections until the primary is
running fine.

I know that a Camel route can consume from multiple endpoints but how to do
it with failover? By failover I mean that it should consume from the primary
endpoint as long as the provider/connection is alive and connect to /
consume from the backup only when the primary goes down.

Thanks a lot for your help.
Dan



--
View this message in context: http://camel.465427.n5.nabble.com/JMS-consumer-failover-tp5751111.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMS consumer failover

Posted by dancsi <an...@epam.com>.
Thanks for the reply. I will give it a try but based on the documentation I'm
not quite sure if it works for other non-ActiveMQ JMS provider.



--
View this message in context: http://camel.465427.n5.nabble.com/JMS-consumer-failover-tp5751111p5751209.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMS consumer failover

Posted by Chubutin <ra...@gmail.com>.
Hi, you have to configure the ActiveMQComponent as this

	<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
		<property name="brokerURL"
			value="failover:($master.broker.url},${slave.broker.url})" />
	</bean>



--
View this message in context: http://camel.465427.n5.nabble.com/JMS-consumer-failover-tp5751111p5751167.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMS consumer failover

Posted by Ramiro Pugh <ra...@gmail.com>.
Hi, you have to configure the ActiveMQComponent as this

<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="brokerURL"
value="failover:($master.broker.url},${slave.broker.url})" />
</bean>




2014-05-14 3:56 GMT-03:00 dancsi <an...@epam.com>:

> I have a primary and a backup JMS provider/server (Tibco EMS). The backup
> is
> running in standby mode and doesn't allow connections until the primary is
> running fine.
>
> I know that a Camel route can consume from multiple endpoints but how to do
> it with failover? By failover I mean that it should consume from the
> primary
> endpoint as long as the provider/connection is alive and connect to /
> consume from the backup only when the primary goes down.
>
> Thanks a lot for your help.
> Dan
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/JMS-consumer-failover-tp5751111.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Ramiro Pugh