"wtff" wrote : 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. 
  | 

How can I have two different ejb-names? Modifing the ejb-jar.xml of each one? I cannot 
do that, since in this way I should also modify the client call.
I'd like to have the same EJB name, but a differenti J2EE application name. In Orion 
this is possible, I can deploy the same Jar in 2 different application, and the only 
thing to do on the client is changing the J2EE application name in the lookup.

"wtff" wrote : 
  | 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>
  |   | 
  | 
  | 
  | 
Thanks for your help, I'll try to make the 2 EAR's, but if you can ask to the above 
question, I'll be very thankful.
Reagards
Alessandro Rizzi

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

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


-------------------------------------------------------
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