{
InitialContext ctx = super.getInitialContext();
LoginContext lc = login("ejbcaller", "ejbcallerpw".toCharArray());
CallerIdentityHome home = (CallerIdentityHome) ctx.lookup("jca-test/RunAsIdentityDS");
CallerIdentity bean = home.create();
bean.useRunAsForAuthDS();
lc.logout();
}
private LoginContext login(String username, char[] password) throws Exception
{