Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Does JBoss offer advantages and benefits over Tomcat?  RSS feed

 
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Assuming I have a Java webapp that doesn't use EJB, What would be a better choice? Tomcat or JBoss?
In other words, does JBoss offer advantages and benefits over Tomcat?
Thanks.
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is simple to make decision...

Choose Jboss or other application server : if your clients will access application using protocols other than http and https. i.r CORBA, JRMP etc...
Choose Tomcat or other web server : if your clients will access application using http or https only....

Thanks

 
Bartender
Posts: 20771
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat does not support the full J2EE stack (as you know). Just the servlet and JSP parts.

JBoss, on the other hand, does support the full J2EE stack. And it provides the servlet/JSP parts by embedding a copy of Tomcat inside itself. At one time it offered an embedded Jetty option, as well, but I've been told by JBoss people that these days, it's strictly Tomcat.

JBoss is perforce larger than plain Tomcat and has more subsystems to start up and shut down than Tomcat, so you're better off with plain Tomcat is all you ever expect to do is servlet/JSP. On the other hand, when you actually need those other bells and whistles, JBoss is an excellent implementation.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bhavik patel wrote:It is simple to make decision...

Choose Jboss or other application server : if your clients will access application using protocols other than http and https. i.r CORBA, JRMP etc...
Choose Tomcat or other web server : if your clients will access application using http or https only....

Thanks


Lets say the application is pure Java web application (no EJBs), Servlets and JSPs and any other web framework like SpringMVC.
How it is possible to access it via protocols other than HTTP and HTTPS?
 
Tim Holloway
Bartender
Posts: 20771
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on what you mean by "other protocols". If they're J2EE-standard protocols such as RMI, you'd be better off using JBoss. If they're custom protocols, you might be able to subclass the Servlet class to service them.
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!