• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity bean anti-patterns

 
Sreedevi Vinod
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I was reading that many entity bean anti-patterns in EJB 2.1 have been resolved in EJB 3.0. One is the use of DTOs. Now that the entities are serializable POJOs, they can be sent instead of DTOs and merged easily with the merge() method. Can anyone tell me which are the other anti-patterns that have been resolved?

Thanks,
Devi
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another example would be putting the Session into an HttpSession, or other tricks to extend the persistence context. Now it is easy to extend the persistence context in EJB3 and really create a Conversation (Multiple request/responses)

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!