users@glassfish.java.net

Re: GlassFish non-default jdbcRealm not working

From: <glassfish_at_javadesktop.org>
Date: Wed, 04 Mar 2009 02:45:57 PST

Please see my post here, you will have to add the realm inside a sun-application.xml

http://weblogs.java.net/blog/kumarjayanti/archive/2008/09/index.html

And then one can add a sun-application.xml file defining the realm. See example below.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-application PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.0 Java EE Application 5.0//EN' 'http://www.sun.com/software/appserver/dtds/sun-application_5_0-0.dtd'>
<sun-application>
   <realm>JDBCRealm</realm>
</sun-application>

In the above sample i have defined the realm to be the JDBCRealm supported by GlassFish.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

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