ProducerTemplate and ConsumerTemplate are leverage the endpoint to
create the producer and consumer.
I think you should take some time to read the Camel in Action and the
camel direct component code. I cannot get your other question.
On 7/28/11 9:12 PM, xiangqiuzhao wrote:
what's the difference between use endpoint to create producer with use
template? or when should to use template? only the difference with the code
lines count?
other question:
Producer producer = endpoint.createProducer();
producer.process(exchange);
why i use from("direct:name").to() i need to createProducer ? not
createConsumer?
not from=Consumer, to=Producer??
--
View this message in context:
http://camel.465427.n5.nabble.com/how-to-route-once-from-myComponent-to-cxf-tp4642015p4642571.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang