users@glassfish.java.net

Re: Can we use _at_RolesAllowed on a servlet?

From: Sarah kho <sarah.kho_at_gmail.com>
Date: Tue, 30 Mar 2010 20:14:46 +0430

Thanks Kumar.

Can you please let me know whether @RolesAllowd can only be used on
enterprise beans or it can be used on
utility classes of enterprise applications?


On Tue, Mar 30, 2010 at 7:46 PM, Kumar Jayanti <Vbkumar.Jayanti_at_sun.com>wrote:

> Sarah kho wrote:
>
>> Hi
>>
>> Can you please let me know whether we can use @RolesAllowed on a Servlet
>> or not?
>> I am testing a Servlet with this annotation but even not authenticated
>> users can access the Servlet. Does it meant to be used on servlets as well?
>>
> you cannot use @RolesAllowed but there are other standard annotations
> defined in JavaEE6 : see
> http://blogs.sun.com/swchan/entry/follow_up_on_servlet_3
>
>>
>> thanks.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>