Examples of useRunAsForAuthDS()


Examples of org.jboss.test.jca.securedejb.CallerIdentity.useRunAsForAuthDS()

   {
      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
   {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.