[jboss-user] [JBoss Microcontainer] - Re: JBoss-classloading.xml in EAR /EJB

Prav Ford do-not-reply at jboss.com
Fri Sep 24 01:24:09 EDT 2010


Prav Ford [http://community.jboss.org/people/lordpraveen] created the discussion

"Re: JBoss-classloading.xml in EAR /EJB"

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

--------------------------------------------------------------
Hi  Ales,
I checked  org.jboss.deployers.plugins.classloading.AbstractClassLoaderDescribeDeployer.

if (deployment.isTopLevelClassLoader() == false)
 {
     if (deployment.getParentDomain() == null) {
            deployment.setDomain(unitName);
            log.debugf("Will use synthetic domain for classloader of subdeployment: %1s", unitName);
     }else{
             log.debugf("Will create top level classloader for subdeployment: %1s", unitName);
     }
  }

If an EJB (with jboss-classloading.xml) is bundled within the EAR file , there is a need to specify just the parent-domain and not the domain.

<classloading xmlns="urn:jboss:classloading:1.0" parent-domain="DefaultDomain"
    export-all="NON_EMPTY" import-all="true" excluded="META-INF">
    <capabilities>
        <package name="com.ejb1.interface" />
    </capabilities>
</classloading>

That  solved my EAR usecase.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100924/3c78e435/attachment-0001.html 


More information about the jboss-user mailing list