Claus Ibsen created CAMEL-5389:
----------------------------------
Summary: Add ProducerTemplate and ConsumerTemplate to bean
parameter binding as known types
Key: CAMEL-5389
URL: https://issues.apache.org/jira/browse/CAMEL-5389
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Claus Ibsen
Fix For: Future
It would be nice if you could just define ProducerTemplate / ConsumerTemplate
as a parameter to a bean method, and have the bean component auto map an
instance to these, using a shared template created from camel context.
We could even support @EndpointInject, @Produce, @Consume as well, so you can do
public void handleError(@Properties Map properties, @EndpointInject(uri
= "seda:retry") ProducerTemplate retry) {
Currently you can map those as fields on the bean, but its not possible on
types, such as in a method signature.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira