This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!