Why do we go for ejb first of all? is there anything which can't be done using servlet and jsp?
posted 9 years ago
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