Examples of create()


Examples of org.jboss.as.pojo.api.BeanFactory.create()

        System.out.println("b = " + b);
    }

    public void start(Object bf) throws Throwable {
        BeanFactory tbf = (BeanFactory) bf;
        B b = (B) tbf.create();
        System.out.println("b = " + b);
    }

}

Examples of org.jboss.as.test.clustering.extended.ejb2.stateful.passivation.StatefulRemoteHome.create()

        // Setting context from .properties file to get ejb:/ remote context
        setupEJBClientContextSelector();

        StatefulRemoteHome home = directory.lookupHome(StatefulBeanDD.class, StatefulRemoteHome.class);
        StatefulRemote statefulBean = home.create();

        runPassivation(statefulBean, controller, deployer);
        startServers(client1, client2);
    }

Examples of org.jboss.as.test.integration.ejb.ejb2.reference.global.Session21Home.create()

   public String access21()
   {
      try {
         InitialContext jndiContext = new InitialContext();
         Session21Home sessionHome = (Session21Home) jndiContext.lookup("java:comp/env/injected");
         Session21 session = sessionHome.create();
         return session.access();
      } catch (Exception e)
      {
         throw new RuntimeException(e);
      }

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.bug1006723.testsession.TestSessionHome.create()

    // Tests -----------------------------------------
    @Test
    public void testBug1006723() throws Exception {
        TestSessionHome testSessionRemoteHome = (TestSessionHome)iniCtx.lookup("java:global/cmp-optimisticlock/TestSession!org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.bug1006723.testsession.TestSessionHome");
        TestSession testSessionRemote = testSessionRemoteHome.create();
        Long oID = testSessionRemote.setup();
        testSessionRemote.test(oID);
    }

    @Test

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocalHome.create()

                    + ", integerGroup2=" + integerGroup2
                    + ", doubleGroup2=" + doubleGroup2);
        }

        CmpEntityLocalHome entityHome = getCmpEntityHome(jndiName);
        entityHome.create(id, stringGroup1, integerGroup1, doubleGroup1,
                stringGroup2, integerGroup2, doubleGroup2);
    }

    /**
     * @ejb.interface-method
 

Examples of org.jboss.as.test.integration.web.sso.interfaces.StatelessSessionHome.create()

            IOException {
        try {
            InitialContext ctx = new InitialContext();
            Context enc = (Context) ctx.lookup("java:comp/env");
            StatelessSessionHome home = (StatelessSessionHome) enc.lookup("ejb/OptimizedEJB");
            StatelessSession bean = home.create();
            bean.noop();

            Object homeRef = enc.lookup("ejb/OptimizedEJB");
            home = (StatelessSessionHome) PortableRemoteObject.narrow(homeRef, StatelessSessionHome.class);
            bean = home.create();

Examples of org.jboss.as.test.integration.web.sso.interfaces.StatelessSessionLocalHome.create()

            bean = home.create();
            bean.noop();
            bean.getData();

            StatelessSessionLocalHome localHome = (StatelessSessionLocalHome) enc.lookup("ejb/local/OptimizedEJB");
            StatelessSessionLocal localBean = localHome.create();
            localBean.noop();
        } catch (Exception e) {
            throw new ServletException("Failed to call OptimizedEJB through remote and local interfaces", e);
        }
        response.setContentType("text/html");

Examples of org.jboss.as.test.module.util.TestModule.create()

                .addClass(AccountEntity.class)
                .addAsManifestResource(new File(JPAEMFFromModuleBasedPartitionManagerTestCase.class
                    .getResource(JPAEMFFromModuleBasedPartitionManagerTestCase.class.getSimpleName() + "-persistence.xml")
                    .getFile()), "persistence.xml");

            module.create();

            return module;
        }
    }
}

Examples of org.jboss.as.web.host.WebDeploymentController.create()

            servlet.setServletClass(clazz);
            servlet.addUrlMapping(urlPattern);
            builder.addServlet(servlet);

            deployment = host.addWebDeployment(builder);
            deployment.create();

        } catch (Exception e) {
            throw WSLogger.ROOT_LOGGER.createContextPhaseFailed(e);
        }
        try {

Examples of org.jboss.byteman.rule.type.TypeGroup.create()

    public Type typeCheck(Type expected) throws TypeException {
        // check the exception type is defined and then look for a relevant constructor

        TypeGroup typeGroup = getTypeGroup();

        type = Type.dereference(typeGroup.create(typeName));

        if (type == null || type.isUndefined()) {
            throw new TypeException("ThrowExpression.typeCheck : unknown exception type " + typeName + getPos());
        }
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.