Package org.jboss.test.security.clientlogin

Examples of org.jboss.test.security.clientlogin.IClientLoginHome.create()


      InitialContext ctx = new InitialContext(env);
      Object obj = ctx.lookup("client-login-tests/BeanA");
      obj = PortableRemoteObject.narrow(obj, IClientLoginHome.class);
      IClientLoginHome home = (IClientLoginHome) obj;
      log.debug("Found IClientLoginHome");
      IClientLogin bean = home.create();
      log.debug("Created IClientLogin");

      Principal user = bean.callBeanAsClientLoginUser();
      assertTrue("callBeanAsClientLoginUser value == jduke",
         user.getName().equals("jduke"));
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.