Package org.jboss.test.jmx.eardeployment.a.interfaces

Examples of org.jboss.test.jmx.eardeployment.a.interfaces.SessionAHome.create()


      isRegisterd = getServer().isRegistered(ejb2Name);
      assertTrue("eardeployment/SessionB is registered", isRegisterd);

        InitialContext ctx = new InitialContext();
        SessionAHome home = (SessionAHome) ctx.lookup("eardeployment/SessionA");
        SessionA bean = home.create();
        bean.callB();
        bean.remove();
      undeploy("cpejbs-manifest.ear");
   }
}
View Full Code Here


   public boolean callA()
   {
      try
      {
         SessionAHome ahome = (SessionAHome)new InitialContext().lookup("eardeployment/SessionA");
         SessionA a = ahome.create();
         a.doNothing();
         return true;
      }
      catch (Exception e)
      {
View Full Code Here

      deploy("unpacked/eardeployment.ear");
      try
      {
         SessionAHome aHome = (SessionAHome)getInitialContext().lookup("eardeployment/SessionA");
         SessionBHome bHome = (SessionBHome)getInitialContext().lookup("eardeployment/SessionB");
         SessionA a = aHome.create();
         SessionB b = bHome.create();
         assertTrue("a call b failed!", a.callB());
         assertTrue("b call a failed!", b.callA());
      }
      finally
View Full Code Here

      try
      {
         SessionAHome aHome = (SessionAHome) getInitialContext().lookup("eardeployment/SessionA");
         SessionBHome bHome = (SessionBHome) getInitialContext().lookup("eardeployment/SessionB");
         SessionA a = aHome.create();
         SessionB b = bHome.create();
         assertTrue("a called b", a.callB());
         assertTrue("b called a", b.callA());
      }
      finally
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.