Examples of create()


Examples of org.jboss.test.perf.interfaces.TxSessionHome.create()

      getLog().debug("+++ testTxTimings()");
      Object obj = getInitialContext().lookup(TX_SESSION);
      obj = PortableRemoteObject.narrow(obj, TxSessionHome.class);
      TxSessionHome home = (TxSessionHome) obj;
      getLog().debug("Found TxSession @ jndiName=TxSession");
      TxSession bean = home.create();
      getLog().debug("Created TxSession");
      txRequired(bean);
      txRequiresNew(bean);
      txSupports(bean);
      txNotSupported(bean);

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

   private StatelessSession getSession() throws Exception
   {
     
      StatelessSessionHome home = (StatelessSessionHome)new InitialContext().lookup("nextgen.StatelessSession");
      return home.create();
   }


   private class NewProxy implements Runnable
   {

Examples of org.jboss.test.profileservice.ejb2x.BeanHome.create()

      {
         public void testManagedDeployment() throws Exception
         {
            InitialContext ic = new InitialContext();
            BeanHome home = (BeanHome) ic.lookup("DeployUnitTestCase-testEjb2xDeployment");
            BeanRemote bean = home.create();
            String entry1 = (String) bean.getEnvEntry("entry1");
            assertEquals("entry1Value", entry1);
         }
      };
      testDeployment(name, "ejb2x", tester);

Examples of org.jboss.test.readahead.interfaces.AddressHome.create()

            rem.setName("Name");
            rem.setRank("Rank");
            rem.setSerialNumber("123456789");
            //give him an address
            if ((i % 2) ==0) {
               addrHome.create(rem.getKey(), "1", "123 east st.", "Eau Claire", "WI", "54701");
            } else {
               addrHome.create(rem.getKey(), "1", "123 east st.", "Milwaukee", "WI", "54201");
            }
         }
      } catch (Exception e) {

Examples of org.jboss.test.readahead.interfaces.CMPFindTestEntityHome.create()

         InitialContext ctx = new InitialContext();
         CMPFindTestEntityHome home = (CMPFindTestEntityHome)ctx.lookup("CMPFindTestEntity");
         AddressHome addrHome = (AddressHome)ctx.lookup("Address");
         for (int i=0;i<DATASET_SIZE;i++) {
            String key = Long.toString(System.currentTimeMillis())+"-"+i;
            CMPFindTestEntityRemote rem = home.create(key);
            rem.setName("Name");
            rem.setRank("Rank");
            rem.setSerialNumber("123456789");
            //give him an address
            if ((i % 2) ==0) {

Examples of org.jboss.test.readahead.interfaces.CMPFindTestSessionHome.create()

      throws Exception
   {
      super.setUp();
      CMPFindTestSessionHome home =
         (CMPFindTestSessionHome)getInitialContext().lookup("CMPFindTestSession");
      rem = home.create();
     
      rem.createTestData();
   }
  
   public void testFindAll() throws Exception {

Examples of org.jboss.test.scoped.interfaces.a.SessionAHome.create()

//      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
//
//      Context ic = new InitialContext(env);

      SessionAHome home = (SessionAHome) getInitialContext().lookup("SessionA");
      SessionA session = home.create();


         SimpleRequestDTO requestDTO = new SimpleRequestDTO();
         requestDTO.setFirstName("Daffy");
         requestDTO.setLastName("Duck");

Examples of org.jboss.test.scoped.interfaces.b.SessionBHome.create()

//      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
//
//      Context ic = new InitialContext(env);

      SessionBHome home = (SessionBHome) getInitialContext().lookup("SessionB");
      SessionB session = home.create();


      SimpleRequestDTO requestDTO = new SimpleRequestDTO();
      requestDTO.setFirstName("Daffy");
      requestDTO.setLastName("Duck");

Examples of org.jboss.test.security.clientlogin.IClientLoginHome.create()

      InitialContext ctx = new InitialContext(env);
      Object obj = ctx.lookup("client-login-tests/BeanA");
      obj = PortableRemoteObject.narrow(obj, IClientLoginHome.class);
      IClientLoginHome home = (IClientLoginHome) obj;
      log.debug("Found IClientLoginHome");
      IClientLogin bean = home.create();
      log.debug("Created IClientLogin");

      Principal user = bean.callBeanAsClientLoginUser();
      assertTrue("callBeanAsClientLoginUser value == jduke",
         user.getName().equals("jduke"));

Examples of org.jboss.test.security.ejb.jbas1852.SessionFacadeHome.create()

      login();
      Object obj = getInitialContext().lookup("spec.PublicSessionFacade");
      obj = PortableRemoteObject.narrow(obj, SessionFacadeHome.class);
      SessionFacadeHome home = (SessionFacadeHome) obj;
      log.debug("Found PublicSessionFacade home");
      SessionFacade bean = home.create();
      log.debug("Created PublicSessionFacade");
      log.debug("Bean.callEcho('testJBAS1852') -> " + bean.callEcho("testJBAS1852"));
      bean.remove();
   }
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.