Thursday, October 7, 2010

Secure Web And EJB - JAAS in Glassfish (GF)

Hi All,

Here are the steps if you wish to create a secure Web and Ejb application using JAAS.

1. If you wish to use your database connection then you need to create a database connection to GlassFish(GF) server. See Configuring Database in GlassFish(GF) Server.

2. After this you need create your realm which has been described in Confuguring Realm

3. Now you need to create your CustomLoginModule.

4. Then lastly you have to set web.xml as in the picture

5. The same role has to mapped in sub-web.xml as


No comments: