Monday, January 19, 2009

EJB 3.0 Migration from JBoss to Oracle Weblogic

Scenario: Customer has a JBoss EJB 3.0 app he wants to deploy to WLS.
JBoss generates a JNDI name as follows –

EarName/EJBName/local

Weblogic, per default, generates

EJBName#packageName

however he wants to keep the JBoss naming convention

Solution:

Add the following tag to weblogic-ejb-jar.xml




project1.MySessionEJB
App1EAR/MySessionEJB/local




Note: If you are testing this by creating an EJB in Jdev 11g and then deploying it to WLS, you may get a jps deployment error. This his to do with the following entries created by Jdev in the weblogic-application.xml



simply delete the 2 listener entries before deploying.

No comments: