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

Claus Ibsen resolved CAMEL-1612.
--------------------------------

    Resolution: Fixed

trunk: 814483.

> Endpoint are not assigned to correct contexts
> ---------------------------------------------
>
>                 Key: CAMEL-1612
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1612
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0-M1
>         Environment: Java 1.6, Spring 2.5.6
>            Reporter: Siegfried Wirth
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>         Attachments: applicationContext.xml, jconsoletwocontexts.png
>
>
> When defining routes in two camel contexts the endpoints are not correctly 
> assigned to the contexts. The bug can easily be observed by using jconsole / 
> jmx. For one camel context the endpoints are not registered.
> From debugging up to InstrumentationLifecycleStrategy#onEndpointAdd(Endpoint) 
> it looks like the order of starting contexts and registering endpoints is 
> wrong. (Camel tries to add endpoints with this method to one context before 
> (initialized) and so the endpoints are not really added. It looks like the 
> reason for this is in the order of initializing contexts and 
> routes/endpoints.)
> See also discussion 
> http://www.nabble.com/Two-camel-contexts-and-assinging-endpoints-(visible-by-jconsole%2C-jmx)-td23520282.html.

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