users@glassfish.java.net

Re: Application-scoped realm?

From: <jmilkiewicz_at_gmail.com>
Date: Sun, 4 Sep 2011 19:06:03 +0200

Hi

Ok. Thx. So it seems it is the same as in Tomcat where configuring
ream is out-of-application, ie. you can not encapsulate realm
configuration with application archive. Anyway thx for an info.

br Jakub

2011/9/4 Kumar Jayanti <v.b.kumar.jayanti_at_oracle.com>:
>
> 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
>>>>
>>>>
>>>
>>>
>
>