camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samslara <>
Subject calling a non-"direct" consumer "directly"
Date Mon, 20 May 2013 14:19:18 GMT
  I have a question.  Suppose I have a route that has a consumer that is not
"direct", say it's jetty.  For example:

<route R1>
  <from uri="jetty:http://localhost:8080/test" />
  <to ... />
  <to ... />

now I want to invoke this route from another route but I don't want to go
via http, rather I want to treat it as if it's direct consumer.  I'm doing
this from either a regular producer/processor or programmatically (maybe a
producerTemplate which I guess is still a producer), so I have an exchange
that I want to just pass to the consumer as if the consumer is using the
direct component.  Is this possible and if so how?

note: I don't want to actually modify route R1 to have a direct consumer, I
want to keep it the same but just invoke it directly without having to go
through the transport protocol and such of the consumer, in this case being
jetty:http.  Also it's all from within the same camel context as the route

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

View raw message