servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r414686 - /incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java
Date Thu, 15 Jun 2006 21:25:16 GMT
Author: gnodet
Date: Thu Jun 15 14:25:16 2006
New Revision: 414686

URL: http://svn.apache.org/viewvc?rev=414686&view=rev
Log:
Add some debug statements for classloading

Modified:
    incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java

Modified: incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java?rev=414686&r1=414685&r2=414686&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java
(original)
+++ incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java
Thu Jun 15 14:25:16 2006
@@ -38,7 +38,11 @@
         }
         ClassLoader old = Thread.currentThread().getContextClassLoader();
         try {
-            Thread.currentThread().setContextClassLoader(((XBeanServiceUnit)ep.getServiceUnit()).getConfigurationClassLoader());
+            ClassLoader cl = ((XBeanServiceUnit)ep.getServiceUnit()).getConfigurationClassLoader();
+            Thread.currentThread().setContextClassLoader(cl);
+            if (logger.isDebugEnabled()) {
+                logger.debug("Registering endpoint with context classloader " + cl);
+            }
             ep.registerService();
         } catch (Exception e) {
             throw failure("deploy", "Could not register endpoint", e);



Mime
View raw message