camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfredrich <>
Subject Restlet multiple endpoint considerations
Date Tue, 25 Aug 2009 14:55:42 GMT

When using the Restlet component to expose tidy URIs, what would you
recommend regarding exposing routes as multiple endpoints?  For instance, a
single endpoint returns JSON (e.g. /people/toddf returns a JSON object
describing person ID 'toddf').  Now suppose I want to expose the same
endpoint with an explicit format URI (e.g. /people/toddf.json) that returns
the same data.

Is it better to have two routes exposed or two 'from()s' in the same route?

In other words, which is better:

*Two froms within a single route:


* Two separate routes:



Does it make a difference from a scalability, performance, and/or heap
consumption standpoint?  Thanks in advance for your advice.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message