GlassFish JDBC security realm
http://jugojava.blogspot.com/2011/02/jdbc-security-realm-with-glassfish-and.html