DevOps Zone is brought to you in partnership with:

I am founder and Master Developer of Plumbr, memory leaking detection tool. I enjoy solving problems, raising self-awareness and professional pride of developers around me. In my out-of-office time I am bookworm and computer games addict. Nikita is a DZone MVB and is not an employee of DZone and has posted 80 posts at DZone. You can read more from them at their website. View Full User Profile

There is No Application Server

04.12.2013
| 4362 views |
  • submit to reddit
We have recently posted data about application server market share we gathered from the free Plumbr deployments. And it resonated well – via different channels we got hundreds of comments and opinions on how to interpret the data.

But one of the arguments in its different forms was constantly being made through every channel. Whether it took the form of “Tomcat is not an application server” or “This data is irrelevant as it is not focused on real application servers such as Weblogic or WebSphere”, it just kept surfacing.

It made us wonder – why does Java community have so different opinion about what actually is an application server. So we decided to shed some light upon the issue. Looking into the most obvious source – namely Wikipedia – and things did not look too bad:

An application server can be either a software framework that provides a generalized approach to creating an application-server implementation, without regard to what the application functions are, or the server portion of a specific implementation instance. In either case, the server’s function is dedicated to the efficient execution of procedures (programs, routines, scripts) for supporting its applied applications.

So far, so good. Apparently anything can be an application server based on the Wikipedia definition. But when we tried to find an official definition for a Java EE application server, things got a bit more interesting.

If you dig under the hood of the Java EE specification, you discover that neither Sun back in the days nor Oracle is using the term “Application server” in the official specifications. Instead, the term “Container” is used throughout the materials. The containers must support different specifications, such as JMS, JTA, JSP to warrant that the applications are portable across different implementations.

Next important fact – until Java EE 5 the only way Sun/Oracle acknowledged your product to be officially Java EE compliant was to implement the whole specification. This led to large and monolithic “enterprise grade” products, such as the infamous Websphere and Weblogic in mid-2000’s. As a result,  more and more people flocked away from the close-to-impossible to use beasts and started using something a bit more humane such as Tomcat or Jetty. Surprisingly the vendors of those products could not care less for the official specification, but instead focused on providing good tools for the job at hand. So the specification committee finally surrendered and broke down the specification.

This breakdown in Java EE 6 is known as Java EE profiles. Java EE 6 specification makes it possible for container vendors to choose whether they wish to implement a subset of the specification to get Web Profile certification or aim for the Full Profile and implement all the specifications. The specifications mandatory in corresponding profiles are described in the following table:

th,td { border: 1px solid; padding: 8px; text-align: center; width:16%; }
Full Java EE 6.0 implementation
Web Profile
Servlet 3.0 JSP 2.2 EL 2.2 EJB 3.1 JMS 1.1 JavaMail 1.1
JSR-45 1.0 JSTL 1.2 JSRF 2.0 Connector 1.6 WebServices 1.3 JAX-RPC 1.1
Common Annotations 1.1 EJB 3.1 Lite JTA 1.1 JAX-WS 2.2 JAX-RS 1.1 JAXB 2.2
JPA 2.0 Bean Validation 1.0 Managed Beans 1.0 JAXR 1.0 Java EE Management 1.1 Java EE Deployment 1.2
Interceptors 1.0 JSR 299 1.0 Dependency Injection 1.0 JACC 1.4 JASPIC 1.0 WebServicesMetadata 2.1

So if you desire to build your very own full Java EE implementation, you’d better be provide implementations to all the 30 acronyms in this list. As this is by no means cheap or easy task, then at the time of posting this article, only the following application servers were officially certified by Oracle on Java EE 6:

Full Profile
Oracle Glassfish 3
IBM WebShpere 8
IBM WebSphere CE 3
Oracle Weblogic
JBoss AS 7
Apache Geronimo 3
Hitachi uCosminexus Application Server 9
Fujitsu Interstage Application Server 10
TMAX JEUS 7
Web Profile
Oracle Glassfish 3
Caucho Resin 4
Apache TomEE 1
JBoss AS 7
Apache Geronimo 3
Sap NetWeaver
JOnAS


If we now compare this list against the most popular application servers, we find that 66% of our user base is happily running on products such as Tomcat and Jetty which are nowhere in sight in the officially certified container list. But we still think both of them make an excellent and easy to use platform for your applications.

So – formally there is no such thing as Java EE Application Server. Instead of this we have Java EE containers, which if the vendor desires can apply for official certification in any of the profiles. And you can definitely have your own cute application server implementing just Servlet specification and leaving out everything else. You are just not eligible to official certification in this case.

If you found the topic interesting, subscribe to our Twitter or RSS feed and be notified about the new posts.

Published at DZone with permission of Nikita Salnikov-tarnovski, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Lund Wolfe replied on Sun, 2013/04/14 - 5:13pm

At one time, a "professional/Sun" Java application was a JEE/J2EE app running on a JEE app server/container, supporting and using Servlet, JSP, EJB.

We have innumerable alternatives now.  We only need to build a client side, server side, or both combined in one tool/framework.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.