users@glassfish.java.net

Stateless bean _at_RolesAllowed

From: Piero Filippin <filippinp_at_yahoo.co.uk>
Date: Wed, 31 Oct 2007 13:58:38 +0000

Hi,
I have a stateless bean, and some methods are annotated with @RolesAllowed.

This bean is called both by a web application and an application client.

Is there a way to find out at runtime if the user logged in is
authorized to call a particular method in the bean? I don't want my
users just to try to see if they get an exception or not!

Thank you in advance for the help!

Piero