You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2009/03/13 15:06:42 UTC
svn commit: r753276 -
/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java
Author: gnodet
Date: Fri Mar 13 14:06:42 2009
New Revision: 753276
URL: http://svn.apache.org/viewvc?rev=753276&view=rev
Log:
SMXCOMP-460: The TCCL is not set to the correct value after deploying a service unit
Modified:
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java
Modified: servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java
URL: http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java?rev=753276&r1=753275&r2=753276&view=diff
==============================================================================
--- servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java (original)
+++ servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java Fri Mar 13 14:06:42 2009
@@ -64,6 +64,7 @@
*/
public ServiceUnit deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
AbstractXmlApplicationContext applicationContext = null;
+ ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
try {
// Create service unit
XBeanServiceUnit su = new XBeanServiceUnit();
@@ -116,7 +117,7 @@
throw failure("deploy", "Could not deploy xbean service unit", e);
}
} finally {
- Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
+ Thread.currentThread().setContextClassLoader(oldCl);
}
}