• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet/jsp container vs. app server  RSS feed

 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using Tomcat for about a year and am still unsure of why I would switch from Tomcat to something like JBoss (which uses Tomcat?).

In tomcat I have JSP's, Action Classes and Business Classes all wrapped up in a nice little application with Tomcat managing the connection pool. Works great.

From what I understand, EJB's do the same thing.

If I'm going to develop a web application, what factor(s) create the need to go beyond Tomcat? Put another way, at what point do I have no choice but to use something like JBoss?

Thanks!
 
Me
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris:
You might wana see discussion going on following thread

http://www.coderanch.com/t/167966/java-Web-Component-SCWCD/certification/Web-server-vs-Application-server
 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Because of transaction support. When you use EJB transaction is managed by container. If you don't have EJB you should manage transaction self. This is not easy job. Some frameworks like hebirnate can be used to the same job as EJB entities.

2. But second reason is a perfomance. EJB because they use connection pooling provide very high TPS (transaction per second). The persomance is comparable with .NET in this case. If you use Tomcat - TPS could be 20% of the EJB system.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!