users@glassfish.java.net

Re: Custom realm in Glassfish 58g

From: <glassfish_at_javadesktop.org>
Date: Mon, 29 Oct 2007 22:33:41 PST

Hi,

 
 Here is what GF recommends :

http://developers.sun.com/appserver/reference/techart/as8_authentication/index.html

   3. Copy the LoginModule and Realm classes, and set the classpath suffix in the application server.

         1. Copy the login module, realm class, and all dependent classes into the application server domain classes directory appserver-domain-dir/lib/classes.

         2. Set the classpath suffix manually with the previous path in the appserver-domain-dir/config/domain.xml file as shown in the following example, or use the asadmin set command.

 

<java-config classpath-suffix="<appserver-domain-dir>/lib/classes" debug-enabled="false"
debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044"
env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g"
server-classpath="${com.sun.aas.javaRoot}/lib/tools.jar${path.separator}$
    {com.sun.aas.installRoot}/lib/install/applications/jmsra/imqjmsra.jar$
        {path.separator}${com.sun.aas.imqLib}/jaxm-api.jar${path.separator}$
            {com.sun.aas.imqLib}/fscontext.jar${path.separator}$
                            {com.sun.aas.antLib}/ant.jar">

Thanks.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

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