Examples of sayHello()


Examples of org.jboss.ejb3.core.test.ejbthree670.MyStateful21.sayHello()

   public void test21() throws Exception
   {
      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/home");
      MyStateful21 session = home.create();
      session.setName("Test");
      String actual = session.sayHello();
      assertEquals("Hi Test", actual);
      try
      {
         session.remove();
      }
View Full Code Here

Examples of org.jboss.ejb3.core.test.ejbthree670.MyStateful21.sayHello()

   public void testRemoveByHandle() throws Exception
   {
      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/home");
      MyStateful21 session = home.create();
      session.setName("Test");
      String actual = session.sayHello();
      assertEquals("Hi Test", actual);
      try
      {
         home.remove(session.getHandle());
      }
View Full Code Here

Examples of org.jboss.ejb3.test.iiop.MyStateful.sayHello()

      Object obj = ctx.lookup("MyStatefulBean/home");
      MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
      //MyStateful bean1 = (MyStateful) PortableRemoteObject.narrow(obj, MyStateful.class);
      MyStateful bean1 = home.create();
      bean1.setName("bean1");
      String response = bean1.sayHello();
      assertEquals("Hello bean1", response);
      bean1.remove();
   }
  
   public void testGetEJBHome() throws Exception
View Full Code Here

Examples of org.jboss.test.isolation.interfaces.b.SessionB.sayHello()

         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.tutorial.partial_deployment_descriptor.bean.CompleteXMLDD.sayHello()

      securityClient.setSimple("jai", "jai123");
      securityClient.login();
     
      System.out.println("jai is a normal user");
      // call sayHello
      System.out.println(completeXMLDDBean.sayHello("jai"));

      // call greet methods
      System.out.println(completeXMLDDBean.greetWithNotSupportedTransaction("jai"));
      System.out.println(completeXMLDDBean.greetWithRequiredTransaction("jai"));
View Full Code Here

Examples of org.jboss.tutorial.stateless.bean.HelloWorld.sayHello()

     String contents = new String((String)msgBody.get());
     try {
         InitialContext ctx = new InitialContext();
              
         HelloWorld client = (HelloWorld) ctx.lookup("HelloWorldBean/remote");
         results = client.sayHello(contents);
         System.out.println("Invoked EJB3: " + results);
     } catch (Exception e) {
     e.printStackTrace();
         System.out.println(e);
     }
View Full Code Here

Examples of org.lestr.astenn.remoteimplementation.api.IService.sayHello()

        ServiceLocator.getSingleton().setLocation(new URL("http://localhost:8080/implementation-1.0-SNAPSHOT/org.lestr.astenn.remoteimplementation.api.IService/org.lestr.astenn.remoteimplementation.implementation.Service"));

        IService service = ServiceLocator.getSingleton().getService();

        System.out.println(service.sayHello());

    }// END Method main


}// END Class Main
View Full Code Here

Examples of org.ow2.easybeans.mavenplugin.examples.helloworld.HelloInterface.sayHello()

            calc.initial(INITIAL_CALC_VALUE);
            calc.add(VALUE_TEST_ADD);
            Integer x = calc.result();

            System.out.println("Calling HelloWorld method : sayHello(x)");
            String result = hr.sayHello(x.toString());

            System.out.println("Result : " + result);

        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here

Examples of org.superbiz.osgi.calculator.CalculatorLocal.sayHello()

        Properties p = new Properties();
        p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
        try {
            Context ctx = new InitialContext(p);
            CalculatorLocal local = (CalculatorLocal) ctx.lookup("CalculatorBeanLocal");
            System.out.println("lookup OK: " + local.sayHello());
        } catch (NamingException e) {
            System.out.println("can't lookup bean: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.superbiz.osgi.calculator.CalculatorRemote.sayHello()

        final Properties properties = new Properties();
        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
        properties.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
        Context remoteContext = new InitialContext(properties);
        CalculatorRemote calculator = (CalculatorRemote) remoteContext.lookup("CalculatorBeanRemote");
        System.out.println("Server answered: " + calculator.sayHello());
    }
}
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.