Examples of create()


Examples of org.jboss.ejb3.test.iiop.HomedStatelessHome.create()

   public void testGetEJBHome() throws Exception
   {
      InitialContext ctx = getInitialContext();
      Object obj = ctx.lookup("HomedStatelessBean/home");
      HomedStatelessHome home = (HomedStatelessHome) PortableRemoteObject.narrow(obj, HomedStatelessHome.class);
      MySession session = home.create();
      Object o = session.getEJBHome();
      HomedStatelessHome home2 = (HomedStatelessHome) PortableRemoteObject.narrow(o, HomedStatelessHome.class);
      // TODO: check home2
   }
  

Examples of org.jboss.ejb3.test.iiop.MyStatefulHome.create()

   public void testIsIdentical() throws Exception
   {
      InitialContext ctx = getInitialContext();
      Object obj = ctx.lookup("MyStatefulBean/home");
      MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
      MyStateful session = home.create();
      Handle h = session.getHandle();
      MarshalledObject mo = new MarshalledObject(h);
      Handle h2 = (Handle) mo.get();
      Object o = h2.getEJBObject();
      MyStateful session2 = (MyStateful) PortableRemoteObject.narrow(o, MyStateful.class);

Examples of org.jboss.embedded.test.vfs.DAO.create()

      String[] includes = {"org/jboss/embedded/test/vfs/*.class"};
      jar.addResources(DAO.class, includes, null);
      jar.mkdir("META-INF").addResource("vfs-test-persistence.xml", "persistence.xml");
      Bootstrap.getInstance().deploy(jar);
      DAO dao = (DAO)new InitialContext().lookup("DAOBean/local");
      dao.create("Bill");
      Customer cust = dao.find("Bill");
      assertNotNull(cust);

   }
}

Examples of org.jboss.example.jms.common.bean.ManagementHome.create()

      try
      {
         InitialContext ic = new InitialContext();
        
         ManagementHome home = (ManagementHome)ic.lookup("ejb/Management");
         Management bean = home.create();
         bean.killAS();
      }
      catch(Exception e)
      {
         // OK, I expect exceptions following a VM kill

Examples of org.jboss.example.jms.stateless.bean.StatelessSessionExampleHome.create()

      InitialContext ic = new InitialContext();
                 
      StatelessSessionExampleHome home =
         (StatelessSessionExampleHome)ic.lookup("ejb/StatelessSessionExample");           
     
      StatelessSessionExample bean = home.create();
                 
      String queueName = getDestinationJNDIName();
      String text = "Hello!";                 
     
      bean.drain(queueName);

Examples of org.jboss.example.jms.statelessclustered.bean.StatelessClusteredSessionExampleHome.create()

      InitialContext ic = new InitialContext();
     
      StatelessClusteredSessionExampleHome home =
         (StatelessClusteredSessionExampleHome)ic.lookup("ejb/StatelessClusteredSessionExample");           
     
      StatelessClusteredSessionExample bean = home.create();

      String queueName = getDestinationJNDIName();
      String text = "Hello!";

      bean.drain(queueName);

Examples of org.jboss.forge.classloader.mock.collisions.ClassCreatesInstanceFromClassLoader.create()

      Object delegate = dep1Loader.loadClass(ClassCreatesInstanceFromClassLoader.class.getName()).newInstance();
      creator = (ClassCreatesInstanceFromClassLoader) ClassLoaderAdapterBuilder.callingLoader(thisLoader)
               .delegateLoader(dep1Loader).enhance(delegate);

      ClassWithGetterAndSetter create = creator.create(dep2Loader, ClassWithGetterAndSetter.class);
      Assert.assertNotNull(create);
   }

   @Test
   public void testReturnTypeNativeAccessAfterParameterTypeEnhancementFromEnhancedClass() throws Exception

Examples of org.jboss.fresh.shell.ejb.RemoteShellHome.create()

        try {
          InitialContext ctx = new InitialContext(new Hashtable(props));
          home = (RemoteShellHome) ctx.lookup("ShellSession");
          log.debug("ctx.lookup(\"ShellSession\"): " + home);

          shellin = home.create();
          log.debug("home.create(): " + shellin);

          shellout = home.create(shellin.getSessionID());
          log.debug("home.create(sessionID): " + shellout);

Examples of org.jboss.ha.framework.server.ClusterPartition.create()

         partition2.setPartitionName(partitionName);
         partition2.setStateTransferTimeout(30000);
         partition2.setMethodCallTimeout(60000);
         partition2.setBindIntoJndi(false);
        
         partition2.create();        
         partition2.start();

         DistributedReplicantManager drm2 = partition2.getDistributedReplicantManager();
        
         Thread.sleep(10000);

Examples of org.jboss.ha.framework.server.JChannelFactory.create()

         factory1.setNamingServicePort(1099);
         factory1.setNodeName("node1");
         factory1.setExposeChannels(false);
         factory1.setExposeProtocols(false);
         factory1.setAddMissingSingletonName(false);
         factory1.create();
         factory1.start();
        
         partition1 = new InjectedChannelClusterPartition(factory1.createChannel(stackName));
         partition1.setPartitionName(partitionName);
         partition1.setStateTransferTimeout(30000);
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.