-
1. Re: Classloader - Sharing common files between web and ejb t
logankiefer Jun 15, 2006 1:25 AM (in response to logankiefer)Another way of putting it is that I want the common classes to not be shared between the servlets and ejbs, where the servlets and ejbs are in the same jvm.
-
2. Re: Classloader - Sharing common files between web and ejb t
logankiefer Jun 15, 2006 10:14 AM (in response to logankiefer)Reading the JBoss classloader chapter very carefully I believe I why my request my not be possible unless I create my own classloaders. JBoss associates the ear archive with a UCL (shared repositiory). The ejb jar and the web war archives are added to the ear's UCL classpath and thus automatically share and resources loaded in this UCL.
So unless I write a classloader that separates the war's assocation with the UCL shared repository the ear and ejb libraries will always be visible to the war. So if I put a common library in the war and the ear their will be class loader isssues. -
3. Re: Classloader - Sharing common files between web and ejb t
logankiefer Jun 15, 2006 11:42 AM (in response to logankiefer)Does anyone think that isolating common classes between servlet and ejb tier is a just plain wrong and should never be attempted?