camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-5812) Add getContext() method to ProducerTemplate interface
Date Sun, 25 Nov 2012 09:30:58 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-5812:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 2.11.0
    
> Add getContext() method to ProducerTemplate interface
> -----------------------------------------------------
>
>                 Key: CAMEL-5812
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5812
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.10.2
>            Reporter: Ge@@ru
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0
>
>
> Relative to issue SMX4-1281 and CAMEL-5299, CamelContextAware interface doesn't work
correctly on blueprint+servicemix and so could be helpful permit to retrieve CamelContext
from ProducerTemplate, in this way through @EndpointInjection i can inject ProducerTemplate
object and then on my method do something like this:
> CamelContext context = producer.getContext();
> Currently, a workaround is this:
> CamelContext context = ((DefaultProducerTemplate)producer).getContext();
> but a clean solution is best.
> On DefaultProducerTemplate is already available getContext so add getContext() on ProducerTemplate
interface is easy (I don't know what are others classes that implements ProducerTemplate).
> I hope for this in camel-2.10.3 (and on smx-4.5.x) :)
> Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message