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

Claus Ibsen commented on CAMEL-1282:
------------------------------------

We could also when doing lookup of spring bean and if its an Endpoint, we could 
check if the CamelContext have been set, if not we can set it automatically.

> Endpoints created with Spring - setting camel context lazy
> ----------------------------------------------------------
>
>                 Key: CAMEL-1282
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1282
>             Project: Apache Camel
>          Issue Type: Task
>            Reporter: Claus Ibsen
>
> CAMEL-505
> Usually when creating endpoints using spring beans you dont set the 
> camelcontext property and thus the endpoint does not have this context 
> assigned.
> It works in many cases but having the context gives advantages. Maybe there 
> are some features with Spring etc. to hook in the camel context if not 
> provided (Endpoints is usually CamelContextAware)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to