validatePolicyContextSubject("post stateful", callerPrincipals);
validateSecurityAssociationSubject("post stateful", callerPrincipals);
EntityHome home3 = (EntityHome)
ctx.lookup("java:comp/env/ejb/Entity");
Entity bean3 = null;
try
{
bean3 = home3.findByPrimaryKey("validateCallerContext");
}
catch(FinderException e)
{
bean3 = home3.create("validateCallerContext");
}
bean3.echo("validateCallerContext");
}
catch(Exception e)
{
GeneralSecurityException ex = new GeneralSecurityException("Unexpected exception");
ex.initCause(e);