Examples of create()


Examples of org.jboss.test.deadlock.interfaces.EnterpriseEntityHome.create()

      {
         EnterpriseEntity A = home.findByPrimaryKey("A");
      }
      catch (ObjectNotFoundException ex)
      {
         home.create("A");
      }
      try
      {
         EnterpriseEntity B = home.findByPrimaryKey("B");
      }

Examples of org.jboss.test.deadlock.interfaces.StatelessSessionHome.create()

   private StatelessSession getSession() throws Exception
   {

      StatelessSessionHome home = (StatelessSessionHome) new InitialContext().lookup("nextgen.StatelessSession");
      return home.create();
   }

   public class RunTest implements Runnable
   {
      public String test;

Examples of org.jboss.test.deployers.ejb.bean1.Bean1Home.create()

      visitor.start(topInfo);
      assertTrue("Expected subdeployments: " + expected, expected.isEmpty());
*/     
      Object o = new InitialContext().lookup("Bean1EJB");
      Bean1Home home = (Bean1Home) PortableRemoteObject.narrow(o, Bean1Home.class);
      Bean1Remote bean = home.create();
      assertEquals("bean1-altdd.xml", bean.getEnvEntry("dd-file"));
   }
}

Examples of org.jboss.test.deployers.vfs.deployer.validate.support.TestXmlDeployer.create()

   public void testNullStream() throws Exception
   {
      // this one needs to be created first
      TestXmlDeployer xmlDeployer = new TestXmlDeployer();
      xmlDeployer.create();

      Map<AbstractVFSParsingDeployer<?>, Class<? extends Exception>> map = new HashMap<AbstractVFSParsingDeployer<?>, Class<? extends Exception>>();
      map.put(new Properties2BeansDeployer(), IOException.class);
      map.put(new MockBshDeployer(), IOException.class);
      map.put(xmlDeployer, RuntimeException.class);

Examples of org.jboss.test.deployment.jbas7760.appone.AppOneEJB2xHome.create()

    * @throws Exception
    */
   public void testDeploymentOfSameEjbJarNameInMultipleEar() throws Exception
   {
      AppOneEJB2xHome appOneHome = (AppOneEJB2xHome) this.getInitialContext().lookup("jbas-7760-appone-ejb");
      AppOneEJB2xRemote appOneRemote = (AppOneEJB2xRemote) PortableRemoteObject.narrow(appOneHome.create(), AppOneEJB2xRemote.class);
     
      // just test a simple invocation
      appOneRemote.doNothing();
     
      // do the same with the other app

Examples of org.jboss.test.deployment.jbas7760.apptwo.AppTwoEJB2xHome.create()

      // just test a simple invocation
      appOneRemote.doNothing();
     
      // do the same with the other app
      AppTwoEJB2xHome appTwoHome = (AppTwoEJB2xHome) this.getInitialContext().lookup("jbas-7760-apptwo-ejb");
      AppTwoEJB2xRemote appTwoRemote = (AppTwoEJB2xRemote) PortableRemoteObject.narrow(appTwoHome.create(), AppTwoEJB2xRemote.class);
     
      // just test a simple invocation
      appTwoRemote.doNothing();
     
     

Examples of org.jboss.test.ejb.passivationcl.stateful.StatefulSessionHome.create()

   public void testMain() throws Exception
   {
      Object ref = getInitialContext().lookup("StatefulSession");
      StatefulSessionHome home = (StatefulSessionHome) PortableRemoteObject.narrow(ref, StatefulSessionHome.class);
      StatefulSession stateful = home.create();
      stateful.test();

      int i = 5;
      while(!stateful.isPassivated())
      {

Examples of org.jboss.test.ejb.proxy.beans.StatefulCounterHome.create()

   {
      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();

Examples of org.jboss.test.ejb3.servlet.Session30Home.create()

        
         // FIXME: this makes the servlet hang sometimes in Class.defineClass1()
         //WarTestObject warObject = (WarTestObject)local.getWarTestObject();
        
         Session30Home home = (Session30Home)ctx.lookup("ejb/Session30Home");
         Session30Remote remote21 = home.create();
         remote21.access(o);
        
         Session30LocalHome localHome = (Session30LocalHome)ctx.lookup("ejb/Session30LocalHome");
         Session30Local local21 = localHome.create();
         local21.access(o);

Examples of org.jboss.test.ejb3.servlet.Session30LocalHome.create()

         Session30Home home = (Session30Home)ctx.lookup("ejb/Session30Home");
         Session30Remote remote21 = home.create();
         remote21.access(o);
        
         Session30LocalHome localHome = (Session30LocalHome)ctx.lookup("ejb/Session30LocalHome");
         Session30Local local21 = localHome.create();
         local21.access(o);
        
         home = (Session30Home)ctx.lookup("java:comp/env/ejb/remote/Session30");
         remote21 = home.create();
         remote21.access(o);
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.