The leader in enterprise class, open source middleware

JBoss Enterprise Middleware

Subscribe to JBoss Enterprise Middleware: eMailAlertsEmail Alerts newslettersWeekly Newsletters
Get JBoss Enterprise Middleware: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

JBoss Authors: APM Blog, Stackify Blog, SOASTA Blog, XebiaLabs Blog, Dynatrace Blog

Related Topics: Java EE Journal, JBoss Enterprise Middleware

J2EE Journal: Article

Migrating a JBoss EJB Application to WebLogic

Modify a JBoss application for the WebLogic Server

Compile the example EJB classes and interfaces.


Copy the WebLogic deployment descriptors, ejb-jar.xml, weblogic-ejb-jar.xml, and weblogic-cmp-rdbms-jar.xml, to the META-INF directory. Create a JAR file from the WebLogic deployment descriptors, classes, and interfaces with the JAR ( tooldocs/windows/jar.html) utility.

jar cf CatalogEJB.jar CatalogBean.class
Catalog.class CatalogHome.class META-INF/*.xml

To deploy the WebLogic entity EJB application, copy the JAR file, CatalogEJB.jar, to the <BEA>\user_projects\domains\mydomain\applications directory, where <BEA> is the directory in which WebLogic server is installed. The EJB application gets deployed on the JBoss server when the server is started. The applications directory in the WebLogic application server is the directory that corresponds to the deploy directory in the JBoss application server.

An entity EJB application developed in JBoss may be migrated to the WebLogic application server by converting the deployment descriptors. Using a similar process, a JBoss J2EE Web application may be migrated to WebLogic by converting the jboss-web.xml deployment descriptor to weblogic.xml.

More Stories By Deepak Vohra

Deepak Vohra is a Sun Certified Java 1.4 Programmer and a Web developer.

More Stories By Ajay Vohra

Ajay Vohra is a senior solutions architect with DataSynapse Inc.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.