Package org.jboss.test.security.interfaces

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


      obj = PortableRemoteObject.narrow(obj, CalledSessionHome.class);
      home = (CalledSessionHome) obj;
      log.debug("Found Level2CallerBean Home");
      try
      {
         bean = home.create();
         fail("Was able to create Level2CallerBean");
      }
      catch (ServerException e)
      {
         AccessException ae = (AccessException) e.detail;
View Full Code Here


      login();
      Object obj = getInitialContext().lookup("spec.CallerFacadeBean-testRunAsSFSB");
      obj = PortableRemoteObject.narrow(obj, CalledSessionHome.class);
      CalledSessionHome home = (CalledSessionHome) obj;
      log.debug("Found CallerFacadeBean-testRunAsSFSB Home");
      CalledSession bean = home.create();
      log.debug("Created spec.CallerFacadeBean-testRunAsSFSB");
      bean.invokeEcho("testRunAsSFSB");
      log.debug("Bean.invokeEcho() ok");
      bean.remove();
   }
View Full Code Here

         InitialContext ic = new InitialContext();
         Context enc = (Context) ic.lookup("java:comp/env");
         Object ref = enc.lookup("ejb/CallerHome");
         CalledSessionHome home = (CalledSessionHome) PortableRemoteObject.narrow(ref,
            CalledSessionHome.class);
         CalledSession bean = home.create();
         String echo = bean.invokeEcho("Level1");
         log.debug("echo, callee.invokeEcho=" + echo);
      }
      catch (Exception e)
      {
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.