yes this is possible.

First of all, if you just deploy ejb-jars by placing them somewhere below the deploy 
directory, their classes will be loaded into the same loader repository. 
So lets first start with the simple case of having an ejb which you want to deploy two 
times, lets say with different configuration settings. You can do this, but you have 
to make sure to use two different ejb-names and two different JNDI paths. 

If the bean should also be able to exist in two different versions, you have to ensure 
that they are loaded into different classloader repositories. In order to achieve 
this, you have to put them into two different ear archives. Within the jboss-app.xml 
file in the META-INF directory of the ear archive you need to specify a separate 
loader repository for each ear:



  | <?xml version='1.0' encoding='UTF-8' ?>
  | 
  | <!DOCTYPE jboss-app
  |     PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd";>
  |     
  | <jboss-app>
  | 
  |     <loader-repository>jmx-domain-name:loader=application-ONE</loader-repository>
  | 
  | </jboss-app>
  | 




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

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


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to