Examples of create()


Examples of org.jboss.test.ejbconf.beans.interfaces.ReadOnlyHelperHome.create()

   }

   public void testReadOnly() throws Exception
   {
      ReadOnlyHelperHome rohh = (ReadOnlyHelperHome)getInitialContext().lookup("ReadOnlyHelper");
      ReadOnlyHelper roHelper = rohh.create();
      roHelper.setUp();
      ReadOnlyHome roh = (ReadOnlyHome)getInitialContext().lookup("ReadOnly");
      ReadOnly ro = roh.findByPrimaryKey(new Integer(1));
      assertTrue("ReadOnly didn't get correct initial value", ro.getValue().equals(new Integer(1)));
      try

Examples of org.jboss.test.entity.interfaces.PathologicalEntityHome.create()

   {
      Pathological.setPathological(pathological);
      try
      {
         PathologicalEntityHome home = getPathologicalEJB();
         home.create(name);
      }
      catch (Throwable e)
      {
         check(e);
      }

Examples of org.jboss.test.entity.interfaces.TestEntityHome.create()

      getLog().debug("Retrieving home");
      TestEntityHome home = TestEntityUtil.getHome();

      getLog().debug("Creating entity");
      TestEntityValue value = new TestEntityValue("key1", null);
      home.create(value);

      getLog().debug("Removing entity externally");
      home.removeExternal("key1");

      getLog().debug("Recreating the entity");

Examples of org.jboss.test.entity.interfaces.UnsetEntityContextHome.create()

      home.clearUnsetEntityContextCallCounter();
     
      // after this call the counter should be 2
      assertEquals("UnsetEntityContextCallCount", 1, home.getUnsetEntityContextCallCounter());
     
      UnsetEntityContext bean = home.create("TestBean");
      // after this call the counter should be 3 (the bean should be returned to the pool?)
      bean.remove();
     
      // after this call the counter should be 4
      // TODO - this assertion fails!

Examples of org.jboss.test.entitydepends.ejb.ALocalHome.create()

   implements MyServiceMBean
{
   public void startService() throws Exception
   {
      ALocalHome ah = (ALocalHome)new InitialContext().lookup("ALocal");
      ah.create(new Long(1), "test");
      ah.remove(new Long(1));
   }
}

Examples of org.jboss.test.hello.interfaces.HelloHome.create()

    */
   public void testHello()
      throws Exception
   {
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      getLog().debug(hello.hello("testHello"));
      hello.remove();
   }

   /**
 

Examples of org.jboss.test.hello.interfaces.LocalHelloLogHome.create()

      LocalHelloLogHome home = null;
      try
      {
         InitialContext ctx = new InitialContext();
         home = (LocalHelloLogHome) ctx.lookup("java:comp/env/ejb/LocalHelloLogHome");
         bean = home.create(name);
         log.info("Created LocalHelloLog with key="+name);
         if( bean != null )
            bean.setStartTime(begin);
      }
      catch(DuplicateKeyException e)

Examples of org.jboss.test.helloiiop.interfaces.HelloHome.create()

      throws Exception
   {
      HelloHome home = (HelloHome)PortableRemoteObject.narrow(
                               getInitialContext().lookup(HelloHome.JNDI_NAME),
                               HelloHome.class);
      Hello hello = home.create();
      getLog().debug(hello.hello("World"));
      hello.remove();
   }

   /**
 

Examples of org.jboss.test.hibernate.ejb.interfaces.ProfileServiceHome.create()

      {
         ProfileServiceHome home = ProfileServiceUtil.getHome();
         ProfileService service = null;
         try
         {
            service = home.create();

            User user = new User();
            user.setEmail("nobody@nowhere.com");
            user.setName( new Name() );
            user.getName().setFirstName("John");

Examples of org.jboss.test.hibernate.timers.interfaces.ITimersHome.create()

      ITimersHome home = (ITimersHome) ctx.lookup("hib-timers/ITimersHome");
      ITimers bean = null;

      try
      {
         bean = home.create();

         int initialCount = bean.listTimers().size();

         TimersID id = new TimersID("testCurrentSession", "*:ejb=None");
         Timers timer = new Timers(id);
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.