[jboss-user] [EJB 3.0] - Re: ejb 2.0 migrate to ejb 3.0
clebert.suconic@jboss.com
do-not-reply at jboss.com
Tue Sep 12 19:50:43 EDT 2006
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971147#3971147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971147
More information about the jboss-user
mailing list