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:
|Full Java EE 6.0 implementation|
|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:
|Oracle Glassfish 3|
|IBM WebShpere 8|
|IBM WebSphere CE 3|
|JBoss AS 7|
|Apache Geronimo 3|
|Hitachi uCosminexus Application Server 9|
|Fujitsu Interstage Application Server 10|
|TMAX JEUS 7|
|Oracle Glassfish 3|
|Caucho Resin 4|
|Apache TomEE 1|
|JBoss AS 7|
|Apache Geronimo 3|
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.
Java Platform, Enterprise Edition is a widely used platform for enterprise server programming in the Java programming language.
This book covers exciting recipes on securing, tuning and extending enterprise applications using a Java EE 6 implementation.The book starts with the essential changes in Java EE 6. Then they will dive into the implementation of some of the new features of the JPA 2.0 specification, and look at implementing auditing for relational data stores.They will then look into how they can enable security for their software system using Java EE built-in features as well as using the well-known Spring Security framework. They will then look at recipes on testing various Java EE technologies including JPA, EJB, JSF, and Web services.Next they will explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks.At the end of the book, they will cover managing enterprise application deployment and configuration, and recipes that will help you debug problems and enhance the performance of your applications.