users@glassfish.java.net

Re: Can't get JDBCRealm to work with MySQL

From: <glassfish_at_javadesktop.org>
Date: Thu, 19 Apr 2007 10:27:39 PDT

You can find a sample program on how to encrypt the password in the following blog:
http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish

According to my previous experience with MySql with JDBCRealm, setting up the resource correctly is the key. You may like to look up the resource and try to see if you can access the database. Using the ping datasource functionality in admin gui may not be enough in this case.
[Message sent by forum member 'swchan2' (swchan2)]

http://forums.java.net/jive/thread.jspa?messageID=213237