OK, after reading the updated javaworld anser I found my answer. I'll put it here for
others.
In your getRoleSets() method you need to add another group called CallerPrincipal. The
member of this class should be what you want returned when you call
EJBContext.getCallerPrincipal
so a sample code snippit ...
protected Group[] getRoleSets()
throws LoginException
{
Group[] roleSets = new Group[2];
roleSets[0] = new SimpleGroup("Roles");
roleSets[1] = new SimpleGroup("CallerPrincipal");
roleSets[0].addMember(new SimplePrincipal("user"));
roleSets[1].addMember(identity);
return roleSets;
}
Where identity is a class that you want returned that implements Principal...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839297#3839297
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839297
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user