[ 
https://issues.apache.org/activemq/browse/CAMEL-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58865#action_58865
 ] 

Claus Ibsen commented on CAMEL-2649:
------------------------------------

Also only singleton beans should be added to the CamelContext servicesToClose 
when using @Produce / @Consume

> FactoryBeans for ProducerTemplate and ConsumerTemplate should be singleton to 
> avoid
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-2649
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2649
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 1.6.2, 2.2.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.6.3, 2.3.0
>
>
> You want the {{ProducerTemplate}} with the assigned id to be a singleton 
> scoped instance, so its shared.
> Currently it creates a new instance which it should not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to