Hi Oleg ,

Or anyone else can halp me :)

in My client code i did:
org.jboss.system.SecurityAssociation.setPrincipal( new DialogUser( "DariusD" ) );


in My Entiry bean i trying:
if (ctx.getCallerPrincipal()==null) {
log("getEntityContext().getCallerPrincipal()==NULL",theLogLevel );
}
Here i detect callerPrincipal == null.

I have added in standardjboss.xml ( is it correct? )
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>false</secure>
<authentication-module>java:/jaas/org.jboss.security.SimpleRealmMappingService</authentication-module>
<role-mapping-manager>java:/jaas/org.jboss.security.SimpleRealmMappingService</role-mapping-manager>
<container-configurations>
.......
</jboss>

In the file EnterpriceContext.java function getCallerPrincipal()

i have added some logs and i found :
principal.getName() == "DariusD" as it should be i think
beanPrincipal == null
and return from this function is null


Where i doing something wrong?
I do testing last source code compiled from CVS.
Thanks for help.

Darius D



Reply via email to