Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1095405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:07:08+00:00 2026-05-17T00:07:08+00:00

We would like to migrate an application written using EJB2.1 beans (both Entity and

  • 0

We would like to migrate an application written using EJB2.1 beans (both Entity and Sessions beans) to EJB3 to improve on maintanance and use new features in the EJB3 spec.

How would we do the migration and give the users the guarantee (if any) that the migrated system still works just as the old one. The original app didn’t have test cases.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:07:09+00:00Added an answer on May 17, 2026 at 12:07 am

    How would we do the migration

    I highly recommend to get EJB 3 in Action. It has a whole chapter dedicated to the migration to EJB 3 in which the authors explain how you can mix EJB 2.x and EJB 3, how to convert an application completely to EJB 3, provide guidelines for the migration of EJB 2.x component to EJB 3. Quoting the conclusion of the chapter:

    Migration of session beans and MDBs to
    EJB 3 is easy but still requires you
    to carefully plan the process because
    client applications may break due to
    changes in the client view of EJBs
    between EJB 2 and EJB 3. Migration of
    CMP entity beans is the most difficult
    task, but you can simplify the
    migration if you use design patterns
    such as DTO, Session Façade, and DAO.

    This chapter also explained how to
    convert JDBC DAOs to use the EJB 3
    JPA. Finally, you saw that the
    migration from using existing O/R
    mapping frameworks to using the EJB 3
    JPA is a very straightforward task.
    With these guidelines and a good
    knowledge of your applications, you
    will have no problem migrating your
    applications to use EJB 3.

    IMO, getting a copy would be well worth it.

    Meanwhile, here are a few articles that might help:

    • Migrating EJB 2.x applications to EJB 3.0
    • Migrating from EJB 2.x to EJB 3.0

    The original app didn’t have test cases.

    Creating integration and/or functional tests before the migration of each business flow is a must if you want to guarantee you won’t introduce any regression. I consider this task to be part of the migration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Ruby on Rails 3 and I would like to use jQuery
I would like to migrate all my unit tests from NUnit to MSTest. In
I would like to migrate a site, but the new URL's are completely different
I would like to know if I migrate from Windows Server 2003 to Windows
I have a .NET application that was written in C# and VB.NET using WinForms.
I have a Windows Form project that I would like to migrate toward a
I am creating a new Rails 3.1 application. I would like this new application
I'm attempting to migrate fairly complex application to Windows Azure. In both the worker
I'm trying to migrate an Android application using OAuth 1.0a to OAuth 2.0. (using
we have an asp.net application developed by a third party. We would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.