Examples of callEcho()


Examples of org.jboss.test.security.ejb.jbas1852.SessionFacade.callEcho()

      obj = PortableRemoteObject.narrow(obj, SessionFacadeHome.class);
      SessionFacadeHome home = (SessionFacadeHome) obj;
      log.debug("Found PublicSessionFacade home");
      SessionFacade bean = home.create();
      log.debug("Created PublicSessionFacade");
      log.debug("Bean.callEcho('testJBAS1852') -> " + bean.callEcho("testJBAS1852"));
      bean.remove();
   }

   /**
    * Test that an MDB with a run-as identity is able to access secure EJBs that require the identity.
View Full Code Here

Examples of org.jboss.test.security.interfaces.CalledSession.callEcho()

      log.debug("Created CalledSession");

      // This should pass due to login role
      bean.invokeEcho("testMissingIsUnchecked");
      // This should pass due to unchecked for missing method-permission
      bean.callEcho();
      bean.remove();
   }

   /** Test that methods without a method-permission behave as excluded
    */
 
View Full Code Here

Examples of org.jboss.test.security.interfaces.CalledSession.callEcho()

      // This should pass due to login role
      bean.invokeEcho("testMissingIsExcluded");
      // This should faile due to excluded for missing method-permission
      try
      {
         bean.callEcho();
         fail("Was able to invoke callEcho");
      }
      catch(AccessException e)
      {
         log.debug("Failed with AccessException");
View Full Code Here

Examples of org.jboss.test.security.interfaces.CalledSession.callEcho()

      obj = PortableRemoteObject.narrow(obj, CalledSessionHome.class);
      CalledSessionHome home = (CalledSessionHome) obj;
      log.debug("Found Level1CallerBean Home");
      CalledSession bean = home.create();
      log.debug("Created spec.Level1CallerBean");
      bean.callEcho();
      log.debug("Bean.callEcho() ok");
      bean.remove();

      // Make sure we cannot access Level2CallerBean remotely
      obj = getInitialContext().lookup("spec.Level2CallerBean");
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.