• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why ejb 2.0 is complicated /complex.What are its disadvantages

 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I want to know why ejb 2.0 is complicated /complex.What are its disadvantages?
 
sanjeev mehra
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session bean - to write say hello method

in EJB 2.x ,you need to write
home interface
component interface
bean

in EJB 3.x ,you need to write
interface (with annotation)
bean (with annotation)

EJB 2.x; lookup is the only way to get server object/resource
EJB 3; DI (dependency injection) & lookup are the available way


there are more points. but basically, with EJB 3 responsibility of container is heavy & responsibility of developer is light weight; so that development is less & maintainance is easy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic