The Pet Catalog sample application demonstrates usage of JavaServer Faces 2.0 and the Java Persistence API. It also demonstrates interoperability between GlassFish and MySQL.
The Java EE 6 Pet Catalog tutorial can be found at: http://weblogs.java.net/blog/caroljmcdonald/archive/2009/08/java_ee_6_pet_c.html.