Package org.jboss.test.naming.interfaces

Examples of org.jboss.test.naming.interfaces.TestEjbLink


      Object obj = getInitialContext().lookup("naming/SessionB");
      obj = PortableRemoteObject.narrow(obj, TestEjbLinkHome.class);
      TestEjbLinkHome home = (TestEjbLinkHome)obj;
      getLog().debug("Found naming/SessionB");

      TestEjbLink bean = home.create();
      getLog().debug("Created the bean");
      assertEquals("Works", bean.testEjbLinkCaller("java:comp/env/ejb/SessionA"));
      getLog().debug("Test succeeded");
      bean.remove();
   }
View Full Code Here


      Object obj = getInitialContext().lookup("naming/SessionB");
      obj = PortableRemoteObject.narrow(obj, TestEjbLinkHome.class);
      TestEjbLinkHome home = (TestEjbLinkHome)obj;
      getLog().debug("Found naming/SessionB");

      TestEjbLink bean = home.create();
      getLog().debug("Created the bean");
      assertEquals("Works", bean.testEjbLinkCaller("java:comp/env/ejb/RelativeSessionA"));
      getLog().debug("Test succeeded");
      bean.remove();
   }
View Full Code Here

      Object obj = getInitialContext().lookup("naming/SessionB");
      obj = PortableRemoteObject.narrow(obj, TestEjbLinkHome.class);
      TestEjbLinkHome home = (TestEjbLinkHome)obj;
      getLog().debug("Found naming/SessionB");

      TestEjbLink bean = home.create();
      getLog().debug("Created the bean");
      assertEquals("Works", bean.testEjbLinkCallerLocal("java:comp/env/ejb/LocalSessionA"));
      getLog().debug("Test succeeded");
      bean.remove();
   }
View Full Code Here

      Object obj = getInitialContext().lookup("naming/SessionB");
      obj = PortableRemoteObject.narrow(obj, TestEjbLinkHome.class);
      TestEjbLinkHome home = (TestEjbLinkHome)obj;
      getLog().debug("Found naming/SessionB");

      TestEjbLink bean = home.create();
      getLog().debug("Created the bean");
      assertEquals("Works", bean.testEjbLinkCallerLocal("java:comp/env/ejb/LocalRelativeSessionA"));
      getLog().debug("Test succeeded");
      bean.remove();
   }
View Full Code Here

        Object obj = getInitialContext().lookup("naming/SessionB");
        obj = PortableRemoteObject.narrow(obj, TestEjbLinkHome.class);
        TestEjbLinkHome home = (TestEjbLinkHome)obj;
        getLog().debug("Found naming/SessionB");

      TestEjbLink bean = home.create();
      getLog().debug("Created the bean");     
      assertEquals("Works", bean.testEjbLinkCallerLocal("java:comp/env/ejb/NoLinkLocalSessionA"));    
      getLog().debug("Test succeeded");
      bean.remove();
    }
View Full Code Here

        Object obj = getInitialContext().lookup("naming/SessionB");
        obj = PortableRemoteObject.narrow(obj, TestEjbLinkHome.class);
        TestEjbLinkHome home = (TestEjbLinkHome)obj;
        getLog().debug("Found naming/SessionB");

        TestEjbLink bean = home.create();
        getLog().debug("Created the bean");
        assertEquals("Works", bean.testEjbLinkCaller("java:comp/env/ejb/NoLinkSessionA"));
        getLog().debug("Test succeeded");
        bean.remove();
    }
View Full Code Here

          Debug.displayClassInfo(TestEjbLinkLocalHome.class, results);
          log.debug(results.toString());

          TestEjbLinkHome home =
            (TestEjbLinkHome) PortableRemoteObject.narrow(object, TestEjbLinkHome.class);
          TestEjbLink bean = home.create();
          return bean.testEjbLinkCalled();
       }
       catch (Exception e)
       {
          log.debug("failed", e);
          return "Failed";
View Full Code Here

TOP

Related Classes of org.jboss.test.naming.interfaces.TestEjbLink

Copyright © 2018 www.massapicom. 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.