Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need of EJB

 
vinoth ar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
can you explain why we need EJB.. what it actually mean.. explain with real time example..

thank you.
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinoth,

The first chapter of any decent EJB reference should answer this question for you. The first chapter of EJB 3 in Action certainly does.

In short, EJB provides a number of component services geared towards the Java EE business/service tier including resource injection, transactions, security, persistence, remoting, web-services, interceptors, scheduling, state management, pooling, thread-safety, component registry, etc. Arguably, EJB 3 is the most streamlined, well-integrated Java business component development techology around (minimal configuration, intelligent defaults, annotations from the ground-up). In addition, most high-end EJB containers add features like depoyment support, real-time monitoring, clustering, load-balancing, failover and the like. If you are likely to use these services, EJB is probably a good choice.

An outdated viewpoint overemphasizes remoting, RMI and CORBA interoperability as the primary use-cases for EJB. This has not been true past EJB 1.0. Another slightly outdated viewpoint is that EJB is too complex to be worth using. While this was true until the EJB 2 time-frame, most developers I talk to these days are impressed by how streamlined/easy EJB 3 is.

Hope this helps,
Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!