Demonstrates the use of Java Persistence APIs based on the new Java Persistence specification in conjunction with JavaServer Faces. The sample creates a simple authentication scheme using JavaServer Faces PhaseListeners and a simple Entity bean representing a user.