Ragav: Are you able to get ejbContext.getCallerPrincipal to return your CustomPrincipal ?
For example: @Stateless | public class MyStatelessBean implements IMyStatelessBean | { | @Resource | SessionContext ejbContext; | | public void testMethod() | { | MyCustomPrincipal principal = (MyCustomPrincipal) ejbContext.getCallerPrincipal(); | //I get a class cast exception here | } | } My login-config.xml does specify a principalClass module-option to my CustomLoginModule. Interestingly though - in a servlet - request.getUserPrincipal() returns the correct MyCustomPrincipal as expected. Thanks Ramakrishna View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134375#4134375 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134375 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user