users@glassfish.java.net

Re: Is it possible to have access to used Realm from EJB

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Fri, 11 May 2007 14:00:03 -0700

Hi,
I am wondering why you need an EnterpriseBean in getGroupNames method.
What info do you look for?
      Shing Wai Chan

Miroslav Nachev wrote:
> Hi,
>
> To ensure additional functionality I need to have direct access to the
> used Realm. Is it possible?
> Because I need to have dynamic user *groups* depending from the
> current object, not only from the current user (the EJB which invoke
> the Realm method *getGroupNames(String username)* I would like to
> create my own Realm implementation where to add the following method:
> *getGroupNames(String username, EnterpriseBean targetObject)*
>
> To be able to invoke this new method I need to have access to my Realm
> implementation.
>
> Any help, ideas or suggestions?
>
>
> Regards,
> Miro.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For
> additional commands, e-mail: users-help_at_glassfish.dev.java.net