Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glassfish vs Tomcat for RESTful Services

Tags:

People also ask

Is GlassFish better than Tomcat?

GlassFish is fully featured and certified Java EE application server developed by Oracle. As such, GlassFish is more heavyweight than either Tomcat or Jetty—and, arguably, a bit more difficult to operate. In fact, GlassFish is more than just a generic Java EE application server.

Does Tomcat support RESTful web services?

With these three classes coded and the Jersey libraries added to the \lib directory of the tomcat-rest-eclipse project, you can run the application on the Tomcat server and invoke their RESTful web services with a browser.

Is GlassFish and Tomcat same?

Tomcat is merely an HTTP server and Java servlet container. JBoss and GlassFish are full-blown Java EE application servers, including an EJB container and all the other features of that stack. On the other hand, Tomcat has a lighter memory footprint (~60-70 MB), while those Java EE servers weigh in at hundreds of megs.

Why do we need GlassFish server?

GlassFish is a Java application server project created by Sun Microsystems that allows many developers to generate enterprise technologies that are convenient and scalable, as well as additional services that can be installed based on preference.


I have a .net development background but relatively new to Java world. We have started development of RESTful services (public web APIs) with JAX-RS to be consumed mostly by mobile platforms (Android, iPhone, windows phone etc.)

  1. We need some guidance on selection of appropriate server such as Tomcat or Glassfish etc.? Please share reason as well.
  2. Also please guide whether our decision of JAX-RS is appropriate for build RESTful services.