You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/07/11 16:15:05 UTC
[jira] [Assigned] (CAMEL-5389) Add ProducerTemplate and
ConsumerTemplate to bean parameter binding as known types
[ https://issues.apache.org/jira/browse/CAMEL-5389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-5389:
----------------------------------
Assignee: Claus Ibsen
> 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
> Assignee: 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 was sent by Atlassian JIRA
(v6.3.4#6332)