Sun provides BluePrints (with the famous Pet Store and the Adventure Builder applications) that show patterns and how they can be implemented using JEE APIs. About the Java PetStore 2.0:
The Java Pet Store 2.0 is the reference application for building AJAX web applications on Java EE 5. It illustrates BluePrints for using AJAX with Java, building AJAX-enabled JSF component libraries, using Java Persistence APIs, applying MVC and other design patterns in an AJAX web app, using Mashups such as Google Maps service for location specific searches of pets and PayPal service for purchases, using an RSS feed as a data source, and lots more.
Note that for versions prior to JEE 5, I really don't think one should consider them as representative of best/good practices but only as technology showcases. JEE 5 has made things much better.
Still, you should have a look at Spring's PetStore sample application (which illustrates iBATIS integration if I remember well) too. It's definitely worth the check.
And you may found others samples like this one (and many others, just google for "Java PetStore").