Hi

Yeah I think maybe the Activator in camel-core should upon
removeBundle (or maybe even in modifiedBundle if refresh only calls
that).
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/osgi/Activator.java#L165

There is some logic that registers and scans type converters, but the
code does not remove those type converters.
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/osgi/Activator.java#L225

This logic is invoked in the register method
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/osgi/Activator.java#L384

But the unregister methods is not implemented where it should
potentially unregister those type converters it added.
Which means the loader should keep state of which type converters it
found, so it knows which ones to remove.



On Tue, Dec 20, 2016 at 2:36 PM, yogu13 <yog...@gmail.com> wrote:
> Is this a defect should i raise a JIRA ?
>
>
> Regards,
> -Yogesh
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-core-not-detecting-converters-on-bundle-restart-in-karaf4-tp5791503p5791744.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to