Package org.jboss.test.spring.ejb

Examples of org.jboss.test.spring.ejb.SpringBeansManager


      InitialContext ctx = new InitialContext();
      String ejbName = "spring-ear/" + SpringBeansManager.class.getSimpleName() + "Impl/remote";
      log.info("Excuting lookup: " + ejbName);
      Object result = ctx.lookup(ejbName);
      assertNotNull(result);
      SpringBeansManager manager = (SpringBeansManager)PortableRemoteObject.narrow(result, SpringBeansManager.class);
      log.info("SpringBeansManager: " + manager);
      assertEquals(3, manager.add(1, 2));
      assertEquals(10, manager.multipy(2, 5));
      manager.log("Some log");
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.spring.ejb.SpringBeansManager

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.