On Fri Dec 16 00:52:01 2011, Arkadi Shishlov wrote:
On Thu, 15 Dec 2011 17:49:59 +0200, msnathan <[email protected]>
wrote:
Now we see a need for a composite service/s that cut across this 8
different
application. My design is to have camel in the front of those 8
applications
and the client UI will talk to camel. The uri for composite operation
will
have the subresource as composite and I will create a route for each
operation in camel. But for non composite operations I want to
by-pass camel
What about putting an HTTP proxy server (such as Nginx) in front of
the backend to route the request based on regexp-s?
Or just simple Play! Framework application, in case you prefer Java
and/or would like to perform some additional processing on pass-thru
requests...
Yes, that is easy and effective way to proxy direct option by using
the HTTP proxy server, and you can pass the composite option to camel
to let it implement other work for.
If camel don't need to do aggregation work for the composite option,
you can need to tell the camel what the dto object is, camel will pass
the object back to the client directly.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang