You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/12/22 11:02:58 UTC

[jira] [Commented] (CAMEL-10641) camel-core - In OSGi should unload the loaded type converters when bundle is removed

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

Claus Ibsen commented on CAMEL-10641:
-------------------------------------

It may be even tricker if its some classloading hell with osgi, so even if we remove type converters explicit it may not matter anyway.

Maybe its just to discourage using custom type converters as static methods in your own Camel bundles. We can then add a note / log a warn about that if we detect a static method. 

> camel-core - In OSGi should unload the loaded type converters when bundle is removed
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-10641
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10641
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, osgi
>            Reporter: Claus Ibsen
>             Fix For: 2.19.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/camel-core-not-detecting-converters-on-bundle-restart-in-karaf4-tp5791503.html
> So even if the CamelContext instance itself is shutdown, then somehow type converters that are static method calls somehow are causing issues. We should instead attempt to unload the type converters when stopping.
> However we need to ensure that this is called after CamelContext is stopped because the type converters are still to be used during shutdown of Camel itself.



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