How to Create a Java EE 6 Application with JSF 2, EJB 3.1, JPA, and NetBeans IDE 6.8
SummaryCongratulations. At this point you should have a fully working application with the RU functionalities. Using the same approach and methods, you can expand the application into a full-fledged enterprise application with little effort. If you cannot get your application to work like how it is supposed to be, not to worry, you can get a copy of the working solution from here.
This tutorial demonstrates the use of various JEE6 technologies (JSF2.0, EJB3 & JPA) to build an enterprise-ready web-based application. Although the same application can be achieved easily by using JSF and JPA alone, but it may not be as scalable and reusable as what is being done here. In this tutorial, the application is segregated into different tiers where each does what they do best: presentation, business logics and data access. This promotes the principle of separation of concerns and each tier can change without effecting the other, e.g. we can change the Presentation tier to use [http://www.icefaces.org ICEfaces] as the Ajax framework if needed later.
See AlsoFor other related resources, see the followings:
- Develop Java EE 5 application with Visual JSF, EJB3 and JPA
- Develop Java EE 6 application with JSF2, EJB3 and JPA using NetBeans IDE 6.8
- Securing Java EE 6 application with JEE Security and LDAP
- Develop Ajax-based JSF2 applications with PrimeFaces using NetBeans IDE 6.8
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)