Hi Ravi, At present, I only have 4 routes. Each route has its own processor. The routes and routing logic are stable but the processors might be changed later. All routes will have the same amount of traffic and configuration are the same.
Shing On Tuesday, January 28, 2014 3:16 AM, "ravindra.godb...@cognizant.com" <ravindra.godb...@cognizant.com> wrote: can you provide following. 1. How many routes you have 2. Does each route have special processing ? 3. Does routing logic change frequently ? 4. Is any route used more than other which requires special configuration ? - Ravi ________________________________________ From: Shing Hing Man [mat...@yahoo.com] Sent: Tuesday, January 28, 2014 3:05 AM To: users@camel.apache.org Subject: Pros and cons of using choice as opposed to having separate endpoints Hi, I am receiving http get request messages at http://localhost:8081/test/install http://localhost:8081/test/registration http://localhost:8081/test/purchase and each of the above are processed differently. I could have one end point from("jetty:http://localhost:8081/test?matchOnUriPrefix=true") with "choice" to process the three "sub routes" accodingly. Alternatively, I could have one end point for each http request : from("jetty:http://localhost:8081/test/install?matchOnUriPrefix=true").process(..) from("jetty:http://localhost:8081/test/registration?matchOnUriPrefix=true").process(..) from("jetty:http://localhost:8081/test/purchase?matchOnUriPrefix=true").process(..) What are the pros and cons of the above two approachs ? Thanks in advance for your assistance ! Shing This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.