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
- [jBoss-User] problem with ctx.getCallerPrincipal() Keith L. Musser
- Re: [jBoss-User] problem with ctx.getCallerPrinci... Oleg Nitz
- Re: [jBoss-User] problem with ctx.getCallerPr... Tom Cook
- Re[2]: [jBoss-User] problem with ctx.getC... Oleg Nitz
- Re[2]: [jBoss-User] problem with ctx.... Tom Cook
- Re: [jBoss-User] problem with ctx.get... Darius Davidavicius
- Re: [jBoss-User] problem with ctx.getCallerPrinci... Keith L. Musser
- Re[2]: [jBoss-User] problem with ctx.getCalle... Oleg Nitz
- Re: Re[2]: [jBoss-User] problem with ctx.... Rickard Oberg
- Re: Re[2]: [jBoss-User] problem with ... Dan OConnor
- Re: Re[2]: [jBoss-User] problem with ... Dan OConnor
- Re: Re[2]: [jBoss-User] problem ... Rickard Oberg
- Re[4]: [jBoss-User] problem with ctx.... Oleg Nitz
- Re: [jBoss-User] problem with ctx.getCallerPrinci... Keith L. Musser
- Re: [jBoss-User] problem with ctx.getCallerPr... Dan OConnor
- RE: [jBoss-User] problem with ctx.getCall... marc fleury
