-
1. Re: A clustered EJB calling a local EJB is not propagating the caller principal
robinsri Feb 14, 2011 9:34 AM (in response to robinsri)Solved the problem. The issue was with the jboss.xml deployment descriptor for the EJBs. The old jboss.xml had the security-domain set for the clusted EJBs something like this...
<container-configurations>
<container-configuration>
<container-name>Clustered Stateless SessionBean</container-name>
<security-domain>java:/jaas/MyEjbConfig</security-domain>
</container-configuration>
</container-configurations>
Unfortunately this didn't set the security-domain for non-clustered EJBs so it was left undefined. When when the clustered EJB, which was in MyEjbConfig, called a non-clustered EJB, the security-domain became undefined and all context, other than the original login user name, "KerberosUser", was lost.
The fix was to define a security-domain for the non-clustered EJBs, like this...
<container-configurations>
<container-configuration>
<container-name>Clustered Stateless SessionBean</container-name>
<security-domain>java:/jaas/MyEjbConfig</security-domain>
</container-configuration>
<container-configuration>
<container-name>Standard Stateless SessionBean</container-name>
<security-domain>java:/jaas/MyEjbConfig</security-domain>
</container-configuration>
</container-configurations>
Thanks and sorry for the false alarm,
Rick