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-10199) EndpointInject injects not started ProducerTemplate
Date Fri, 29 Jul 2016 07:32:20 GMT

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

Claus Ibsen updated CAMEL-10199:
--------------------------------
    Priority: Minor  (was: Major)

> EndpointInject injects not started ProducerTemplate
> ---------------------------------------------------
>
>                 Key: CAMEL-10199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 2.17.2
>            Reporter: John Mark
>            Priority: Minor
>
> I use Camel with Spring framework and create my routes as spring beans. I use {{<camel:ContextScan/>}}
to have my routes started. 
> The problem I have is that the {{ProducerTemplate}} that is injected into my bean (a
different bean - not the route bean) using {{@EndpointInject}} is not ready for use. When
I try to call producerTemplate.send() I get:
> {noformat}
> IllegalStateException: ProducerTemplate has not been started
> {noformat}
> I am using {{?block=true}} in the uri when I call producerTemplate.send()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message