summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-15 10:55:23 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-15 10:55:23 +0000
commitf1e07cf238256d035518815a9b15050125c6e266 (patch)
treee3765b9f06415f30c9e068919a45f3f11478a15f /sca-java-2.x
parent2ef13455af5eb51db227d47ecee3a8f43eede05e (diff)
Update to always return the current TCCL instead of the cached one. This is so each Node use the correct TCCL when the Tuscany jars are shared (I'll post to the ML about this as its not a complete fix yet)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@899589 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x')
-rw-r--r--sca-java-2.x/trunk/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java b/sca-java-2.x/trunk/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
index 08b2ac2c3f..767af937fd 100644
--- a/sca-java-2.x/trunk/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
+++ b/sca-java-2.x/trunk/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
@@ -124,7 +124,8 @@ public class ContextClassLoaderServiceDiscoverer implements ServiceDiscoverer {
}
public ClassLoader getContextClassLoader() {
- return classLoaderReference.get();
+ //return classLoaderReference.get();
+ return Thread.currentThread().getContextClassLoader();
}
private List<URL> getResources(final String name) throws IOException {