|
||||||||||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||||||||||
_______________________________________________ Amdatu-developers mailing list [email protected] http://lists.amdatu.org/mailman/listinfo/amdatu-developers


OSGi code should never depend on the context classloader of a thread, therefore I am against setting it in the dispatcher or elsewhere. If you are using a library within an implementation bundle that cannot be made to work unless you set the context classloader, that should be fixed within that bundle and special care should be taken to reset it again when:
a) the call from the outside into your bundle finishes;
b) you make a call to the outside (some other service).
In this case, Shindig should be fixed to no longer rely on the CCL, but instead allow you to set a classloader (so we can use the bundle classloader). This seems related to: https://issues.apache.org/jira/browse/SHINDIG-1487