In this section, we will take a brief look over key features in Java EE 6.
In Java EE 6 some new features are added like Profiles. Some technologies is improved by adding annotations instead of XML in most of the technologies(Servlets 3.0, JPA 2.0). Some features are also removed completely, for example CMP of EJB because it is not widely used by the software developers.
The major changes in the Java EE 6 is given below :
The major release in Java EE 6 is the new modified version of the Servlet technology. In the new version, you can declare servlet using annotation which makes the deployment descriptor optional.
Another step in making web tier simple is the Web Fragments . For adding framework libraries such as Struts, Spring, JSF etc. you don't need to change the web.xml library. Servlets 3.0 have Web Fragments descriptor which specify the details of each libraries which is used by the container.
The presentation layer(JSF, JSP, Servlet) and the persistence layer( JPA,EJB3.0, JCA, JTA) have getting bigger without much interaction. Presently no technology is present to integrate both tiers web and persistence. The main reason for creating Web Beans is to short out this issue by defining beans which can communicate multiple tiers. The technologies in both the web tier is compatible with Web Beans.
The main features of the JPA 2.0 is given below :
JSF 2.0 have lot of new modifications. These changes are takes place by keeping in mind the comfort of development, fixes and new features, performance, Technology. To avoid faces-config.xml and web.xml lot of annotations are used in JSF 2.0 . Everything can be done through annotations how Servlets 3.0 has done.
In spite of that, JSF2.0 contains a lot of new promising features like expand the request processing lifecycle to be aware of Ajax, allow for bookmark JSF pages, provide a mechanism to easily access persistent store
Posted on: November 8, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles