Bonjour

Je reprend un vieux projet en EJB2 que le client pour une question de cout ne souhaite pas migrer en EJB3
Par contre je souhaite supprimer le WAS et mettre un JBOSS EAP, il existe une licence EAP6, mais par defaut il est configuré pour les EJB3
Je cherche donc comment configurer un EAP6 avec EJB2

Pour l'instant mes lectures me donne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
Run EJB 2.x on JBoss EAP 6
1. Modify the Code to Use the New JNDI Namespace Rules
As with EJB 3.0, you must use the full JNDI prefix with EJB 2.x. For more information on the new
JNDI namespace rules and code examples, “Update Application JNDI
Namespace Names”.
 
2. Modify the jboss-web.xm l File Descriptor
Modify the <jndi-nam e> for each <ejb-ref> to use the new JNDI fully qualified lookup format.
 
3. Replace the jboss.xm l deployment descriptor file
T he jboss-ejb3.xm l deployment descriptor replaces the jboss.xm l deployment descriptor to
override and add to the features provided by the Java Enterprise Edition (EE) defined ejbjar.
xm l deployment descriptor. T he new file is incompatible with jboss.xm l, and the
jboss.xm l is now ignored in deployments.
 
4. Start the Server with the Full Profiles
EJB 2.x requires the Java Enterprise Edition 6 Full Profile. T o start JBoss EAP 6 with the full
profile, pass the argument -c standalone-full.xml on the command line when you start the
server.
AIE l"etape1 necessite de modifier les noms JNDI dans le code
Merci d'avance