Place the common part in it's own route and make it consume from a Direct endpoint, e.g. direct:common.
Raúl. On 2 May 2013, at 14:27, horyna <phoffic...@centrum.cz> wrote: > We have in lots routes some common part. e.g.: > > .setHeader("h", constant(THIS_IS_VARIOUS_FOR_EVERY_ROUTE)) > .filter(method("serv", "method").isEqualTo(false)) > .to(VARIOUS_URI) > .beanRef("serv", "method"); > > is here possibility how to wrap in and call like one part? e.g.: > > from("uri").unmashal...callCommonPart(parameters) ...marshal > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Is-possible-to-wrap-a-part-of-route-tp5731917.html > Sent from the Camel - Users mailing list archive at Nabble.com.