You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Deepak kumar <dk...@gmail.com> on 2016/08/03 18:29:08 UTC

camel consume message from multiple jms endpoint based on condition

i have a camel route which polls a jms component and this works fine for me.
But we have another requirement here there should be 2 jms endpoints .if 
first endpoint is not up then camel should polls the 2nd endpoint.Can anyone
suggest how to achieve this? thanks in advance..



--
View this message in context: http://camel.465427.n5.nabble.com/camel-consume-message-from-multiple-jms-endpoint-based-on-condition-tp5786002.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel consume message from multiple jms endpoint based on condition

Posted by Deepak kumar <dk...@gmail.com>.
Hi Claus,

We are using solace as the jms component and its a queue.

Basically it is a spring boot camel project . So during application startup
from the properties file it creates the jms component.

application.properties:-
jms.connectionType=solace
jms.solace.solaceJmsVpnContext=Solace_JMS_VPN
jms.solace.providerUrl=XXX
jms.solace.securityPrincipal=YYY
jms.solace.securityCredentials=ZZZ
jms.solace.solaceJmsVpn=AAA
jms.solace.initialContextFactory=com.solacesystems.jndi.SolJNDIInitialContextFactory
jms.solace.fallbackproviderUrl=BBB

and i am creating a bean like this:-

@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "jms.solace")
public class SolaceContainerFactoryProperties {

	private String solaceJmsVpnContext;
	private String providerUrl;
	private String securityPrincipal;
	private String securityCredentials;
	private String solaceJmsVpn;
	private String initialContextFactory;
        ...
 }

Please, help me on this



--
View this message in context: http://camel.465427.n5.nabble.com/camel-consume-message-from-multiple-jms-endpoint-based-on-condition-tp5786002p5786017.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel consume message from multiple jms endpoint based on condition

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

What JMS broker are you using?

And are those 2 endpoints the same "queue" or are they two different
queues / brokers etc.

If its the same queue then the JMS broker / client typically has
built-in automatic failover you can configure.
For example ActiveMQ and Artemis has that.




On Wed, Aug 3, 2016 at 8:29 PM, Deepak kumar <dk...@gmail.com> wrote:
> i have a camel route which polls a jms component and this works fine for me.
> But we have another requirement here there should be 2 jms endpoints .if
> first endpoint is not up then camel should polls the 2nd endpoint.Can anyone
> suggest how to achieve this? thanks in advance..
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-consume-message-from-multiple-jms-endpoint-based-on-condition-tp5786002.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2