camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Diesler (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-8000) Add global notion of CamelContextRegistry
Date Mon, 10 Nov 2014 14:13:34 GMT

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

Thomas Diesler edited comment on CAMEL-8000 at 11/10/14 2:12 PM:
-----------------------------------------------------------------

Reopened. The DefaultCamelContextRegistry contract has been weakened by [this|https://github.com/apache/camel/commit/cdee7809bf801faf504d06047d5763d57bc4067f]
commit.

The DefaultCamelContextRegistry implementation gives package protected access to add/remove
camel contexts to the camel runtime. Clients are not expected to manage the set of registered
contexts.

Registered listeners are owned by the client which registered the listener.
Neither the camel runtime nor non-owning clients can control the set of registered listeners.


Adding a public DefaultCamelContextRegistry.clear() method would break this contract.


was (Author: tdiesler):
Reopened. The DefaultCamelContextRegistry contract has been weakened by [this|https://github.com/apache/camel/commit/cdee7809bf801faf504d06047d5763d57bc4067f]
commit.

The DefaultCamelContextRegistry implementation gives package protected access to add/remove
camel contexts to the camel runtime. Clients are not expected to manage the set of registered
contexts.

Registered listeners are owned by the client which registered listener.
Neither the camel runtime nor non-owning clients can control the set of registered the listeners.


Adding a public DefaultCamelContextRegistry.clear() method would break this contract.

> Add global notion of CamelContextRegistry
> -----------------------------------------
>
>                 Key: CAMEL-8000
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8000
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.14.0
>            Reporter: Thomas Diesler
>            Assignee: Claus Ibsen
>             Fix For: 2.15.0
>
>
> There are a number of issues with the Container API that make it unusable in WildFly
> # Concept of unsynchronised singleton
> # Call to 3rd party code with partially constructed objects
> # Unsynchronised access to a shared resource
> Currently there are at least two components that compete for the Container singleton.
The Camel Subsystem and Insight Camel.
> I suspect that the Container API cannot be fixed in a compatible way. 
> Instead the notion of a CamelContextRegistry that fixes the issues with Container may
need to get added.



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

Mime
View raw message