users@glassfish.java.net

Re: EJB SessionContext CallerPrincipal

From: Gerald Holl <gerald_at_holl.co.at>
Date: Mon, 24 Mar 2008 12:54:01 +0100

V B Kumar Jayanti wrote:
> Gerald Holl wrote:
>
>> Hello,
>>
>> Is there a way to specify a custom Principal class for the
>> getCallerPrincipal method on SessionContext?
>> By default the PrincipalImpl class is used but it is not sufficient
>> for my purposes.
>>
> Can you explain your case and possibly file an RFE. I believe we do not
> support Custom Principals for EJB SessionContext, but i will double
> check and get back.

Hello V B Kumar,

I have a standalone Java Client (Eclipse RCP Client) where I lookup a
session bean. At server side the ordinary PrincipalImpl is not enough
since I need more attributes than the name of the user. Thus I'd like to
have a custom principal class.

cheers,
Gerald