[jboss-user] [JBoss Microcontainer Development] - On demand resolution

Adrian Brock do-not-reply at jboss.com
Wed Mar 31 08:41:03 EDT 2010


Adrian Brock [http://community.jboss.org/people/adrian%40jboss.org] replied to the discussion

"On demand resolution"

To view the discussion, visit: http://community.jboss.org/message/534904#534904

--------------------------------------------------------------
To pass one of the other tests you added, I had to change the OSGi classloader shutdown policy to GC.
I thought you'd done that a while ago, but apparantly not (at least I couldn't find it?)

Index: AbstractClassLoadingDeployer.java
===================================================================
--- AbstractClassLoadingDeployer.java    (revision 103305)
+++ AbstractClassLoadingDeployer.java    (working copy)
@@ -26,6 +26,7 @@
 import java.util.List;
 
 import org.jboss.classloader.spi.ClassLoaderDomain;
+import org.jboss.classloader.spi.ShutdownPolicy;
 import org.jboss.classloading.spi.metadata.CapabilitiesMetaData;
 import org.jboss.classloading.spi.metadata.ClassLoadingMetaData;
 import org.jboss.classloading.spi.metadata.RequirementsMetaData;
@@ -100,6 +101,7 @@
       OSGiBundleManager bundleManager = bundleState.getBundleManager();
 
       OSGiClassLoadingMetaData classLoadingMetaData = new OSGiClassLoadingMetaData();
       classLoadingMetaData.setName(bundleState.getSymbolicName());
       classLoadingMetaData.setVersion(bundleState.getVersion());
       classLoadingMetaData.setDomain(domain != null ? domain.getName() : null);
+      classLoadingMetaData.setShutdownPolicy(ShutdownPolicy.GARBAGE_COLLECTION);

In case you missed it:
 http://community.jboss.org/thread/147089 http://community.jboss.org/thread/147089
 http://community.jboss.org/thread/148829 http://community.jboss.org/thread/148829

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/534904#534904]

Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100331/28e8ad57/attachment.html 


More information about the jboss-user mailing list