users@glassfish.java.net

Re: Application-scoped realm?

From: Kumar Jayanti <v.b.kumar.jayanti_at_oracle.com>
Date: Sun, 4 Sep 2011 22:16:51 +0530

On 04-Sep-2011, at 7:43 PM, jmilkiewicz_at_gmail.com wrote:

> Hi
>
> Just to make it clear: by defining realm/realms in a server config is
> it possible to configure an application scoped realm in glassfish ? I
> mean, the realm that is applied to a SINGLE application ( as it is
> possible in Tomcat )?

yes that is possible, you can define any number of realms and associate each one with just a single app. However when i meant Application Scoped realm, it is also about the lifecycle of the realm (as to when it is loaded and unloaded).


>
> regards Jakub
>
>
> 2011/9/4 Kumar Jayanti <v.b.kumar.jayanti_at_oracle.com>:
>>
>> On 25-Aug-2011, at 12:15 AM, forums_at_java.net wrote:
>>
>>> In Glassfish, you can supply application-scoped resources with your .ear file
>>> by putting a glassfish-resources.xml file in your .ear file's META-INF
>>> directory.
>>>
>>> Is there any way to supply an application-scoped /realm/ with your .ear file?
>> No. All realms need to be declared in security-service of the server config.
>>
>>>
>>> Best,
>>> Laird
>>>
>>>
>>> --
>>>
>>> [Message sent by forum member 'ljnelson']
>>>
>>> View Post: http://forums.java.net/node/837039
>>>
>>>
>>
>>