You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/01/21 15:02:59 UTC

[jira] Created: (CAMEL-1282) Endpoints created with Spring - setting camel context lazy

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.


[jira] Assigned: (CAMEL-1282) Endpoints created with Spring - setting camel context lazy

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-1282:
----------------------------------

    Assignee:     (was: Claus Ibsen)

> 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.


[jira] Assigned: (CAMEL-1282) Endpoints created with Spring - setting camel context lazy

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-1282:
----------------------------------

    Assignee: Claus Ibsen

> 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
>            Assignee: 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.


[jira] Resolved: (CAMEL-1282) Endpoints created with Spring - setting camel context lazy

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1282.
--------------------------------

    Resolution: Working as Designed

Already happening since DefaultEndpoint is CamelContextAware.

> 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.


[jira] Commented: (CAMEL-1282) Endpoints created with Spring - setting camel context lazy

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (CAMEL-1282) Endpoints created with Spring - setting camel context lazy

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49304#action_49304 ] 

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

If endpoint is CamelContextAware then its automatic got the camel context.

> 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.