Examples of create()


Examples of org.jboss.test.jmsra.bean.QueueRecHome.create()

      // Create a receiver
      Context context = getInitialContext();
      try
      {
         QueueRecHome home = (QueueRecHome) context.lookup(BEAN_JNDI);
         rec = home.create();

         init(context);
      }
      finally
      {

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

      isRegisterd = getServer().isRegistered(ejb2Name);
      assertTrue("eardeployment/SessionB is registered", isRegisterd);

        InitialContext ctx = new InitialContext();
        SessionAHome home = (SessionAHome) ctx.lookup("eardeployment/SessionA");
        SessionA bean = home.create();
        bean.callB();
        bean.remove();
      undeploy("cpejbs-manifest.ear");
   }
}

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

   {
      try
      {
        
         SessionBHome bhome = (SessionBHome)new InitialContext().lookup("eardeployment/SessionB");
         SessionB b = bhome.create();
         b.doNothing();
         return true;
      }
      catch (Exception e)
      {

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

      InitialContext jndiContext = new InitialContext();
      log.debug("Lookup StatelessSessionWithGZip");
      Object obj = jndiContext.lookup("StatelessSessionWithGZip");
      StatelessSessionHome home = (StatelessSessionHome)obj;
      log.debug("Found StatelessSessionWithGZip Home");
      StatelessSession bean = home.create();
      log.debug("Created StatelessSessionWithGZip");
      // Test that the Entity bean sees username as its principal
      String echo = bean.echo("jrmp-comp");
      log.debug("bean.echo(jrmp-comp) = " + echo);
      bean.remove();

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

         {
            nextEntity = home.findByPrimaryKey(beanName);
         }
         catch (FinderException e)
         {
            nextEntity = home.create(beanName);
         }
         lastEntity = beanName;
      }
      catch (Exception e)
      {

Examples of org.jboss.test.marshal.interfaces.MarshalSessionHome.create()

    * @throws Exception
    */
   public void testUnMarshalException() throws Exception
   {
      MarshalSessionHome marshalHome = (MarshalSessionHome)getInitialContext().lookup("marshal/MarshallSession");
      MarshalSession marshalSession = marshalHome.create();

      TestPayload payload = new TestPayload();
      try
      {
         marshalSession.testMethod(payload);

Examples of org.jboss.test.marshaliiop.interfaces.MarshalSessionHome.create()

   public void testUnMarshalException() throws Exception
   {
      Object objHome = getInitialContext().lookup("marshalliiop/MarshallSession");
      objHome = PortableRemoteObject.narrow(objHome, MarshalSessionHome.class);
      MarshalSessionHome marshalHome = (MarshalSessionHome) objHome;
      MarshalSession marshalSession = marshalHome.create();

      TestPayload payload = new TestPayload();
      try
      {
         marshalSession.testMethod(payload);

Examples of org.jboss.test.mdbdefaultraname.bean.TestStatusHome.create()

   }
  
   public void testMDBDefaultRAName() throws Exception
   {
      TestStatusHome testHome = (TestStatusHome) new InitialContext().lookup("TestStatus");
      TestStatus test = testHome.create();
      Map<String, String> map = new HashMap<String, String>();
      map.put("StandardMDB", "jms-ra.rar");
      map.put("MDBTestMessageListener", "jcainflow.rar");
      assertEquals(map, test.getResourceAdapterNames());
   }

Examples of org.jboss.test.mdbsessionpoolclear.bean.TestStatusHome.create()

 
   public void testMdb() throws Exception
   {
      TestStatusHome statusHome = (TestStatusHome) getInitialContext().lookup("TestStatus");
      TestStatus status = statusHome.create();
      status.clear();
     
      QueueConnection cnn = null;
      QueueSender sender = null;
      QueueSession session = null;

Examples of org.jboss.test.naming.interfaces.TestENCHome.create()

      TestENCHome home = (TestENCHome)obj;
      getLog().debug("Found SecuredENCBean");

      try
      {
         TestENC bean = home.create();
         getLog().debug("Created SecuredENCBean");
         bean.accessENC();
         bean.remove();
      }
      finally
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.