Hi, I have developed an application with following route, please suggest if it could be improve
public void configure() throws Exception { from("jpa:VasRequest?consumeDelete=false&consumer.delay=20000&consumer.namedQuery=selectRequests&persistenceUnit=VasServicePU") .setProperty("subno", simple("${body.VasRequest.getSubno}")) .choice() .when(simple("${body.VasRequest.getMessage}=='Y'")) .pollEnrich("jpa:VasRequest?consumeDelete=false&consumer.namedQuery=isRequestAvailable&persistenceUnit=VasServicePU") .choice() .when(body().isNull()).to("bean:AirResponse?method=sendNotification") .otherwise().to("bean:UcipCommand?method=updateServiceClass") .to("xmlrpc:http://x.x.x.x:100/Air?synchronous=true&clientConfigurer=#airConfigurer") .to("bean:AirResponse?method=updateServiceClass") .endChoice() .otherwise() .to("bean:UcipCommand?method=getOffers") .to("xmlrpc:http://x.x.x.x:100/Air?synchronous=true&clientConfigurer=#airConfigurer") .to("bean:AirResponse?method=getOffers") .choice() .when(simple("${body.VasRequest.getMessage}=='0'")) .to("bean:UcipCommand?method=updateServiceClass") .to("xmlrpc:http://x.x.x.x:100/Air?synchronous=true&clientConfigurer=#airConfigurer") .to("bean:AirResponse?method=updateServiceClass") .otherwise() .to("bean:AirResponse?method=sendNotification") .endChoice() .endChoice() .to("jpa:VasResponse?persistenceUnit=VasServicePU") .end(); } Regards, Imran -- View this message in context: http://camel.465427.n5.nabble.com/Route-Design-Suggetion-tp5756825.html Sent from the Camel - Users mailing list archive at Nabble.com.