This content has been marked as final.
Show 4 replies
-
1. Re: Domain interaction when there is scoping
adrian.brock Jan 28, 2008 7:54 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
but we need to make it easier for subdeployments to build class loader in the correct domain.
That's what I said above. Instead of trying to hack something for the war classloader
use case, let's try to do this generically in the structure metadata
such that any subdeployment can say its classpath isn't to be added to the
root classloader of the deployment, instead a new
subdeployment classloader is built "on top of" the deployment classloader.
This is going to have to be modelled in the "Classloading" anyway since
you can image the case where you have two wars that
explictly import different versions of log4j for example in the same ear.
i.e. the log4j classes don't come from the WEB-INF/lib they are imported from
a repository based on version constraints. -
2. Re: Domain interaction when there is scoping
starksm64 Jan 28, 2008 11:52 AM (in response to starksm64)So is this something you will do? I was not expecting this for beta4.
-
3. Re: Domain interaction when there is scoping
starksm64 Jan 28, 2008 11:48 PM (in response to starksm64)For now I have updated the HackClassloaderMetaDataDeployer to create a ClassLoaderMetaData for child deployments with the domain copied from the top-level ClassLoaderMetaData.
-
4. Re: Domain interaction when there is scoping
adrian.brock Jan 30, 2008 10:53 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
So is this something you will do? I was not expecting this for beta4.
No it won't be in beta4. Its needs an OSGi style repository first. :-)
The deployments that are pulled from the repository and use real imports
will need to go into a seperate domain (the domain isn't really used
except to determine the parent classloading context - importAll = false)
otherwise they will be picked up by the importAll processing for other deployments.
e.g. in the example above, you don't want two different versions of log4j
in the DEFAULT_DOMAIN.