Package org.jboss.test.security.interfaces

Examples of org.jboss.test.security.interfaces.RunAsServiceRemoteHome.create()


      RunAsServiceRemote bean = null;
      try
      {
         InitialContext ctx = new InitialContext();
         RunAsServiceRemoteHome home = (RunAsServiceRemoteHome) ctx.lookup("jacc/RunAs");
         bean = home.create();
      }
      catch(Exception e)
      {
         throw new EJBException("Failed to create RunAsServiceRemote", e);
      }
View Full Code Here


         InitialContext ctx = new InitialContext();
         Object obj = ctx.lookup("jacc/RunAs");
         obj = PortableRemoteObject.narrow(obj, RunAsServiceRemoteHome.class);
         RunAsServiceRemoteHome home = (RunAsServiceRemoteHome) obj;
         System.out.println("Found RunAsServiceRemoteHome");
         RunAsServiceRemote bean = home.create();
         System.out.println("Created RunAsServiceRemote");
         Class[] sig = {CallerInfo.class};
         Method methodCall = bean.getClass().getMethod(method, sig);
         Object[] args = {info};
         methodCall.invoke(bean, args);
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.