[jboss-user] [JBoss Microcontainer] New message: "Re: Classloaders & Domains: Some questions & a suggestion"

Gilles Compienne do-not-reply at jboss.com
Mon Feb 22 10:13:24 EST 2010


User development,

A new message was posted in the thread "Classloaders & Domains: Some questions & a suggestion":

http://community.jboss.org/message/527622#527622

Author  : Gilles Compienne
Profile : http://community.jboss.org/people/gcompienne

Message:
--------------------------------------------------------------
Sorry for the delay in responding. As expected your code works but I finally found the difference with my tests:
 
If I move transl and Services into their own domain, i.e. by adding a domain attribute as the example below:
 
<Services>/jboss-classoading.xml:
<classloading xmlns="urn:jboss:classloading:1.0" domain="InfinispanCacheDomain">
   <requirements>
      <package name="com.alesj.spi"/>
   </requirements>
</classloading>
 
<transl>/jboss-classloading.xml:
<classloading xmlns="urn:jboss:classloading:1.0" domain="InfinispanCacheDomain">
   <capabilities>
      <package name="com.alesj.spi"/>
   </capabilities>
</classloading>
 
Then it does not work anymore and Services suddenly starts seeing the Dummy class, even though I didn't declare any dependencies onto it...
 
To me this is wrong, especially as I agree with you that, if I start declaring explicitely the <requirements> then I should not see anything else...
 
Or I am missing something else?
 
Thanks again for your help.
 
Gilles.

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

To reply to this message visit the message page: http://community.jboss.org/message/527622#527622




More information about the jboss-user mailing list