1 Reply Latest reply on Sep 12, 2006 7:50 PM by clebert.suconic

    ejb 2.0 migrate to ejb 3.0

    aaronyeo22

      I wanna convert existing ejb2.0 project to 3.0. is it very hard. and provide any recommendation.

      thanks

        • 1. Re: ejb 2.0 migrate to ejb 3.0
          clebert.suconic

          Everything is now a POJO... so some of the design patterns from EJB 2 are not valid any more.


          For example:

          - Value Objects...

          You don't need that as you don't need to convert your POJO to a POJO.

          - SetEntityContext
          Lots of the events from EJB2 are not needed on EJB3. And even if you need then you can simply use an annotation

          - Server State on EntityBeans
          While you could have server state on Entity Beans, you can't have them on POJOs. (You would serialize useless information needed on the client).


          You will probably find some tools that will "convert" your application to EJB3, but my recommendation would be don't use them.