it is the exact way in jboss3x cos of the jboss3' new cloass loader arch.
if one ear include the same class of different versions,the classloader always load 
the first one.

for that you should pack the different version of war fils in different ear files

from jboss doc:
If you need to deploy multiple versions of an application the default 3.x class 
loading model would require that each application be deployed in a separate JBoss 
server. Sometimes this is desirable as you have more control over security and 
resource monitoring, but it can be difficult to manage multi-ple server instances. An 
alternative mechanism exists that allows multiple versions of an application to be 
deployed using EAR based scoping.
Such an ear creates its own class loader repository that looks first to .the 
deployment units included in the ear before delegating to the default class loader 
repository. To enable an ear specific loader repos-itory create a 
META-INF/jboss-app.xml descriptor as shown in Listing 2-1LISTING 2-1. An example 
jboss-app.xml descriptor for enabled scoped class loading at the ear level.<jboss-app>
<loader-repository>some.dot.com:loader=webtest.ear</loader-repository>
</jboss-app>
where the value of the loader-repository element is the JMX ObjectName to assign to 
the repository created for the ear. This must be unique and be a valid JMX ObjectName.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822245#3822245

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822245


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to