Markus Eisele: JDBC Realm and Form Based Authentication with GlassFish 3.1.2.2 and Primefaces 3.4