This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need for ejb

 
Arun Prasath
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we go for ejb first of all?
is there anything which can't be done using servlet and jsp?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of things EJBs do that a servlet container can't do. It's not just about the code that they execute. It's also about all the other services an EJB container provides, e.g. transaction handling, load balancing, monitoring, etc.

In addition to that, EJBs are an abstraction. Sure you can write servlet/JDBC code that does the same thing, but then, you can write assembler code instead of Java. EJBs free you from thinking about certain aspects of the system as a whole, since the EJB container worries about them.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!