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

Reply via email to