users@glassfish.java.net

Can not get custom principal from EJB Layer?

From: <glassfish_at_javadesktop.org>
Date: Mon, 15 Oct 2007 16:48:18 PDT

Hi all,

We are migrating our large scale J2EE application to glassfish, the application was built with custom realm and principals, by doing ProgrammaticLogin.

Currently I have successfully create the custom realm and login module. For the custom principal,
I have manged to replace WebPrincipal in web tier, however, when I try to get CallerPrincipal from EJB tier, GF always return com.sun.enterprise.deployment.PrincipalImpl.
Seems there is no way to get custom principal.

After check the GF src code, found couple of places this com.sun.enterprise.deployment.PrincipalImpl have been hard coded.

Wondering whether it is bug from GF by using custom principal and ProgrammaticLogin.

Any suggestion and help will be highly appreciated.
[Message sent by forum member 'willtao' (willtao)]

http://forums.java.net/jive/thread.jspa?messageID=240261