[
https://issues.apache.org/jira/browse/PIVOT-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033443#comment-13033443
]
Andrei Pozolotin commented on PIVOT-22:
---------------------------------------
also, additional pivot refactoring is required to resolve this:
https://issues.apache.org/jira/browse/FELIX-2951
http://stackoverflow.com/questions/2198928/better-handling-of-thread-context-classloader-in-osgi
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
/*
* Start threads, or establish connections, here, now
*/
} finally {
Thread.currentThread().setContextClassLoader(tccl);
}
> OSGi support
> ------------
>
> Key: PIVOT-22
> URL: https://issues.apache.org/jira/browse/PIVOT-22
> Project: Pivot
> Issue Type: New Feature
> Components: wtk
> Reporter: Greg Brown
> Assignee: Sandro Martini
> Priority: Minor
> Fix For: 2.1
>
> Attachments: pivot-osgi.patch
>
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira