Examples of SessionB


Examples of org.jboss.test.isolation.interfaces.b.SessionB

         buffer = new StringBuffer("My SessionBHome");
         Debug.displayClassInfo(SessionBHome.class, buffer);
         log.info(buffer.toString());
        
         SessionBHome home = (SessionBHome) o;
         SessionB session = home.create();
        
         IsolationDTO dto = new IsolationDTO();
         dto.payload = "hello";
        
         IsolationDTO result = session.sayHello(dto);
         if (dto == result)
            throw new EJBException("Expected pass by value");
         if ("goodbye".equals(result.payload) == false)
            throw new EJBException("Did not get expected 'goodbye'");
      }
View Full Code Here

Examples of org.jboss.test.jmx.eardeployment.b.interfaces.SessionB

   {
      try
      {
        
         SessionBHome bhome = (SessionBHome)new InitialContext().lookup("eardeployment/SessionB");
         SessionB b = bhome.create();
         b.doNothing();
         return true;
      }
      catch (Exception e)
      {
         Logger.getLogger(getClass()).error("error in callB", e);
View Full Code Here

Examples of org.jboss.test.jmx.eardeployment.b.interfaces.SessionB

      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
      {
         undeploy("unpacked/eardeployment.ear");
      }
View Full Code Here

Examples of org.jboss.test.jmx.eardeployment.b.interfaces.SessionB

      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
      {
         undeploy(testUrl);
      }
View Full Code Here

Examples of org.jboss.test.scoped.interfaces.b.SessionB

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

      SessionBHome home = (SessionBHome) getInitialContext().lookup("SessionB");
      SessionB session = home.create();


      SimpleRequestDTO requestDTO = new SimpleRequestDTO();
      requestDTO.setFirstName("Daffy");
      requestDTO.setLastName("Duck");
      //SimpleResponseDTO result = session.runSimpleTest(requestDTO);
      Object result = session.runSimpleTest(requestDTO);

      System.out.println("result was " + result);
      //System.out.println(result.getFirstName() + " " + result.getLastName());

   }
View Full Code Here

Examples of org.jboss.test.scoped.interfaces.b.SessionB

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

      SessionBHome home = (SessionBHome) getInitialContext().lookup("SessionB");
      SessionB session = home.create();


      SimpleRequestDTO requestDTO = new SimpleRequestDTO();
      requestDTO.setFirstName("Daffy");
      requestDTO.setLastName("Duck");
      //SimpleResponseDTO result = session.runSimpleTest(requestDTO);
      Object result = session.runSimpleTest(requestDTO);

      System.out.println("result was " + result);
      //System.out.println(result.getFirstName() + " " + result.getLastName());

   }
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.