Weblog

All | Personal | Sun
« How to use CMP beans... | Main | How to use EntityMan... »
20051208 Thursday December 08, 2005

Develop Custom Realm in NetBeans I will write simple custom realm for Sun Application server in NetBeans. This realm will be used for authentication of users. I will implement very simple realm that will check password that are stored in Hashtable. I guess, extending this realm for using JDBC or other technology is easy task.
Implementation involves the following three steps:

The realm will be developed in NetBeans IDE. Final SimpleRealm project is avalaible here.Create new J2SE project and follow these steps: What's about debugging realm in NetBeans?
Start Application server in debug mode and put breakpoint in Realm class and attach debugger to port 9009. Then, you can login in your application and then debugg realm. ~ Posted by pblaha ( Dec 08 2005, 04:02:29 PM CET ) Permalink Comments [6]

Trackback URL: http://blogs.sun.com/pblaha/entry/develop_custom_realm_in_netbeans
Comments:

It would also nice to have a JACC realm tutorial.

Posted by Heiko Wagner on December 16, 2005 at 10:53 AM CET #

Will you plz send me the information of Realms for javaee5 which stores user credential in database

Posted by Geetanjalee Paygude on March 22, 2006 at 08:10 AM CET #

jnjknjnn

Posted by oo on May 31, 2006 at 06:17 PM CEST #

Test Mail

Posted by Test on December 20, 2006 at 08:38 AM CET #

I performed step by step all in this tutorial. But when I put's jar file in domains/domain1/lib directory and correct's classpath suffix of JVM's classpath settings, app serv (Sun Java System Application Server 9.1 (build b58g-fcs)) can't find MyJDBCRealm class. Could you pleas prompt me what the reason of this problem.

Posted by Alex on October 15, 2007 at 07:50 AM CEST #

ety

Posted by 136.186.1.190 on October 30, 2007 at 07:36 AM CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Calendar

RSS Feeds

Search

Links

Navigation

Referers

Older blog entries