How about use “direct” endpoint to connect those route?

.loadBalance().failover().to(“direct:jpa”) 
…

from(“direct:jpa”).pollEnrich(“jpa:xxx”);

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On October 21, 2014 at 3:56:24 PM, imranrazakhan (imranrazak...@gmail.com) 
wrote:
> Hi,
>  
> I have following route and i want to apply loadbalance with failover for
> pollenrich in route
>  
> from("jpa:com.test.VasRequest?consumeDelete=false&consumer.delay=20000&consumer.namedQuery=selectLoanRequests&persistenceUnit=VasServicePU")
>   
> .choice()
> .when(simple("${body.VasRequest.getMessage}=='Y'"))
> .loadBalance().failover()
>  
> .pollEnrich("jpa:VasRequest?consumer.namedQuery=verifyRequests&persistenceUnit=VasServicePU1")
>   
> .otherwise()
> .to("direct:verifyOffer")
> .endChoice()
> .to("jpa:com.test.VasResponse?persistenceUnit=VasServicePU")
> .end();
>  
> Now if i couldnt get response from pollEnrich, i would like to query on
> other jpa endpoint, but pollenrich is showing error if i provide other
> endpoint by comma separation.
>  
> Regards
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/LoadBalance-for-pollenrich-tp5757837.html  
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to