users@glassfish.java.net

Re: Create a custom realm

From: KumarJayanti <v.b.kumar.jayanti_at_oracle.com>
Date: Sun, 11 Nov 2012 07:38:56 +0530

On Nov 10, 2012, at 8:49 PM, forums_at_java.net wrote:

> Hi, I want to develop a custom realm for Glassfish V3 which is basically an
> extending of jdbcRealm. This realm should access many databases so it's
> necessary to get in addition to username and password the number of database
> to make some String DataSource name with (ie: jdbc/datasources/db1,
> jdbc/datasources/db2, ..., jdbc/datasources/dbn)
Do you need to pass this string to the realm at Runtime or can you make it a configuration property for your realm ?
> . But I wonder how to pass
> the number 1, 2, ..., n to my custom LoginModule/realm to authenticate user ?
> I want to login user inside JSF context. Is form-login can realize it ?
> Thanks you for your help. Olivier
>
> --
>
> [Message sent by forum member 'olivierJ']
>
> View Post: http://forums.java.net/node/892193
>
>