Examples of OpenEjbConfiguration


Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

        return earData.getAppInfo();
    }

    private AppInfo configureApplication(AppModule appModule, EjbModule ejbModule, Configuration configuration)
            throws OpenEJBException {
        OpenEjbConfiguration openEjbConfiguration = new OpenEjbConfiguration();
        openEjbConfiguration.containerSystem = new ContainerSystemInfo();
        openEjbConfiguration.facilities = new FacilitiesInfo();
        boolean offline = true;

        ConfigurationFactory.Chain chain = new ConfigurationFactory.Chain();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

        assembler.createProxyFactory(config.configureService(ProxyFactoryInfo.class));
        assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
        assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));

        OpenEjbConfiguration configuration = SystemInstance.get().getComponent(OpenEjbConfiguration.class);
        resources = configuration.facilities.resources;
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

    }

    private void createIndexes() {
        deploymentIdIndex = new HashMap();
        containerIdIndex = new HashMap();
        OpenEjbConfiguration configuration = SystemInstance.get().getComponent(OpenEjbConfiguration.class);
        for (AppInfo appInfo : configuration.containerSystem.applications) {
            for (EjbJarInfo ejbJarInfo : appInfo.ejbJars) {
                for (EnterpriseBeanInfo bean : ejbJarInfo.enterpriseBeans) {
                    deploymentIdIndex.put(bean.ejbDeploymentId, bean);
                }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

        ServiceFinder serviceFinder = new ServiceFinder("META-INF/");

        Map availableServices = serviceFinder.mapAvailableServices(ServerService.class);
        List enabledServers = new ArrayList();

        OpenEjbConfiguration conf = SystemInstance.get().getComponent(OpenEjbConfiguration.class);
        for (Iterator iterator = availableServices.entrySet().iterator(); iterator.hasNext();) {
            Map.Entry entry = (Map.Entry) iterator.next();
            String serviceName = (String) entry.getKey();
            Properties serviceProperties = (Properties) entry.getValue();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

    public void writeBody(PrintWriter out) throws IOException {
        try {
            String ejb = request.getQueryParameter("ejb");
            if (ejb == null) {
                OpenEjbConfiguration configuration = SystemInstance.get().getComponent(OpenEjbConfiguration.class);
                for (AppInfo appInfo : configuration.containerSystem.applications) {
                    for (EjbJarInfo ejbJarInfo : appInfo.ejbJars) {
                        for (EnterpriseBeanInfo bean : ejbJarInfo.enterpriseBeans) {
                            out.print("<a href='"+VIEW_EJB+"?ejb="+bean.ejbDeploymentId+"'>"+ejbImg+"&nbsp;&nbsp;"+bean.ejbDeploymentId+"</a><br>");
                        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

            System.err.println("Temp file creation failed.");
            e.printStackTrace();
            System.exit(1);
        }

        OpenEjbConfiguration configuration = null;
        try {
            configuration = configInfo.getOpenEjbConfiguration(tempFile);
        } catch (ConfigurationInfo.UnauthorizedException e) {
            System.err.println("This tool is currently crippled to only work with server's on the same physical machine.  See this JIRA issue for details: http://issues.apache.org/jira/browse/OPENEJB-621");
            System.exit(10);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

    public void testGetOpenEjbConfiguration() throws OpenEJBException {
        SystemInstance.get().setProperty(ConfigurationFactory.VALIDATION_SKIP_PROPERTY, "false");
        SystemInstance.get().setProperty(DeploymentsResolver.SEARCH_CLASSPATH_FOR_DEPLOYMENTS_PROPERTY, "false");
        final boolean offline = false;
        ConfigurationFactory factory = new ConfigurationFactory(offline);
        OpenEjbConfiguration openEjbConfig = factory.getOpenEjbConfiguration();
        // again, not much to assert
        assertEquals(0, openEjbConfig.containerSystem.applications.size());
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

        Properties props = new Properties();
        URL configUrl = this.getClass().getClassLoader().getResource(
                "org/apache/openejb/config/configurationfactory-openejb.xml");
        props.setProperty(ConfigurationFactory.CONF_FILE_PROPERTY, configUrl.toExternalForm());
        factory.init(props);
        OpenEjbConfiguration openEjbConfig = factory.getOpenEjbConfiguration();
        assertEquals(0, openEjbConfig.containerSystem.applications.size());
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

    }

    @Test
    public void testConfigurationFactoryBooleanOpenEjbConfiguration() throws OpenEJBException {
        final boolean offline = false;
        final OpenEjbConfiguration openEjbConfiguration = new OpenEjbConfiguration();
        ConfigurationFactory factory = new ConfigurationFactory(offline, openEjbConfiguration);
        assertEquals(openEjbConfiguration, factory.getOpenEjbConfiguration());
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.OpenEjbConfiguration

    @Test
    public void testConfigurationFactoryBooleanDynamicDeployerOpenEjbConfiguration() throws OpenEJBException {
        final boolean offline = false;
        final DynamicDeployer dynamicDeployer = null;
        final OpenEjbConfiguration openEjbConfiguration = new OpenEjbConfiguration();
        ConfigurationFactory factory = new ConfigurationFactory(offline, dynamicDeployer, openEjbConfiguration);
        assertEquals(openEjbConfiguration, factory.getOpenEjbConfiguration());
    }
View Full Code Here
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.