Examples of OutputLocalBusiness


Examples of org.jboss.jbossas.embedded.testsuite.ejb3.slsb.OutputLocalBusiness

      // Deploy the JAR
      shrinkwrapEjbContainer.deploy(archive);

      // Look up the EJB
      final Context context = ejbContainer.getContext();
      final OutputLocalBusiness bean;
      try
      {
         bean = (OutputLocalBusiness) context.lookup(OutputLocalBusiness.JNDI_NAME);
      }
      catch (final NamingException e)
      {
         throw new RuntimeException("Could not find bean proxy at " + OutputLocalBusiness.JNDI_NAME, e);
      }

      // Invoke
      final String value = bean.getOutput();

      // Undeploy
      shrinkwrapEjbContainer.undeploy(archive);

      // Shut down EJBContainer
View Full Code Here

Examples of org.jboss.jbossas.embedded.testsuite.ejb3.slsb.OutputLocalBusiness

      server.deploy(archive);

      // Test
      try
      {
         final OutputLocalBusiness bean = (OutputLocalBusiness) NAMING_CONTEXT.lookup(OutputLocalBusiness.JNDI_NAME);
         final String output = bean.getOutput();
         log.info("Got output: " + output);

         Assert.assertEquals(OutputLocalBusiness.OUTPUT, output);
      }
      finally
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.