Package org.jboss.test.ejb.proxy.beans

Examples of org.jboss.test.ejb.proxy.beans.StatefulCounterHome


   public void testEjbMetrics() throws Exception
   {
      getLog().debug(getName());

      Object ref = getInitialContext().lookup("ejb/StatefulCounterEjb");
      StatefulCounterHome home = (StatefulCounterHome) PortableRemoteObject.narrow(ref, StatefulCounterHome.class);
      StatefulCounter counter = home.create();

      assertEquals(1, counter.count());
      assertEquals(2, counter.count());

      ManagementView mgtView = getManagementView();
View Full Code Here


   public void testEjbGetObjectRetrievalMethod() throws Exception
   {
      getLog().debug(getName());
     
      Object ref = getInitialContext().lookup("ejb/StatefulCounterEjb");
      StatefulCounterHome home = (StatefulCounterHome) PortableRemoteObject.narrow(ref, StatefulCounterHome.class);
      StatefulCounter counter = home.create();

      assertEquals(1, counter.count());
      assertEquals(2, counter.count());

      RetrievalMethodHandle handle = (RetrievalMethodHandle)counter.getHandle();
View Full Code Here

TOP

Related Classes of org.jboss.test.ejb.proxy.beans.StatefulCounterHome

Copyright © 2018 www.massapicom. 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.