Examples of SessionAHome


Examples of org.jboss.test.isolation.interfaces.a.SessionAHome

      }
   }
  
   private void doTest() throws Exception
   {
      SessionAHome home = (SessionAHome) getInitialContext().lookup("SessionA");
      SessionA session = home.create();
      session.invokeSessionB();
   }
View Full Code Here

Examples of org.jboss.test.jmx.eardeployment.a.interfaces.SessionAHome

      ObjectName ejb2Name = new ObjectName("jboss.j2ee:service=EJB,jndiName=eardeployment/SessionB");
      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

Examples of org.jboss.test.jmx.eardeployment.a.interfaces.SessionAHome

    */
   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

Examples of org.jboss.test.jmx.eardeployment.a.interfaces.SessionAHome

   public void testUnpackedEjbJar() throws Exception
   {
      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

Examples of org.jboss.test.jmx.eardeployment.a.interfaces.SessionAHome

      String testUrl = "eardeployment.ear";
      deploy(testUrl);

      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

Examples of org.jboss.test.scoped.interfaces.a.SessionAHome

//      env.put("java.naming.provider.url", "localhost:1100");
//      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
//
//      Context ic = new InitialContext(env);

      SessionAHome home = (SessionAHome) getInitialContext().lookup("SessionA");
      SessionA session = home.create();


         SimpleRequestDTO requestDTO = new SimpleRequestDTO();
         requestDTO.setFirstName("Daffy");
         requestDTO.setLastName("Duck");
View Full Code Here

Examples of org.jboss.test.scoped.interfaces.a.SessionAHome

//      env.put("java.naming.provider.url", "localhost:1100");
//      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
//
//      Context ic = new InitialContext(env);

      SessionAHome home = (SessionAHome) getInitialContext().lookup("SessionA");
      SessionA session = home.create();


         SimpleRequestDTO requestDTO = new SimpleRequestDTO();
         requestDTO.setFirstName("Daffy");
         requestDTO.setLastName("Duck");
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.