Examples of MyStatelessRemote


Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.MyStatelessRemote

   {
      Object bean = RemoteAccessTestCase.getContext().lookup(JNDI_NAME_SLSB_REMOTE);
      assertTrue("Bean was not of expected type " + MyStatelessRemote.class.getName() + " but was instead " + bean,
            bean instanceof MyStatelessRemote);

      MyStatelessRemote slsb = ((MyStatelessRemote) bean);
      String result = slsb.sayHi("testRemote");
      String expected = "Hi testRemote";
      assertEquals("Result was not expected", expected, result);
      result = slsb.sayHi("testRemote");
      expected = "Hi testRemote";
      assertEquals("Result was not expected", expected, result);
   }
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.MyStatelessRemote

      Assert.assertNotNull("Remote jndi name " + remoteJNDIName + " lookup returned null", remote);
      Assert.assertTrue("Remote jndi name lookup at " + remoteJNDIName + " returned unexpected object " + remote,
            remote instanceof MyStatelessRemote);

      MyStatelessRemote remoteBean = (MyStatelessRemote) remote;

      String remoteMessage = remoteBean.sayHi(name);
      Assert.assertEquals("Unexpected greeting message: " + message + " from remote stateless bean", remoteMessage,
            expectedMessage);

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