You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Nicky Sandhu <ni...@hotmail.com> on 2007/08/29 01:08:16 UTC
CamelTemplate send method
Should this not return convertedExchange?
/**
* Sends the exchange to the given endpoint
*
* @param endpoint the endpoint to send the exchange to
* @param exchange the exchange to send
*/
public E send(Endpoint<E> endpoint, E exchange) {
E convertedExchange = endpoint.toExchangeType(exchange);
producerCache.send(endpoint, convertedExchange);
return exchange;
}
--
View this message in context: http://www.nabble.com/CamelTemplate-send-method-tf4344828s22882.html#a12378150
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CamelTemplate send method
Posted by James Strachan <ja...@gmail.com>.
On 8/29/07, Nicky Sandhu <ni...@hotmail.com> wrote:
>
> Should this not return convertedExchange?
>
> /**
> * Sends the exchange to the given endpoint
> *
> * @param endpoint the endpoint to send the exchange to
> * @param exchange the exchange to send
> */
> public E send(Endpoint<E> endpoint, E exchange) {
> E convertedExchange = endpoint.toExchangeType(exchange);
> producerCache.send(endpoint, convertedExchange);
> return exchange;
> }
Another great catch Nicky! Patch applied!
--
James
-------
http://macstrac.blogspot.com/