Examples of CommonDeployment


Examples of org.jboss.jca.deployers.common.CommonDeployment

    public void start(StartContext context) throws StartException {

        String pathname = "file://RaActivator" + deploymentName;

        final ServiceContainer container = context.getController().getServiceContainer();
        CommonDeployment deploymentMD;
        try {
            ResourceAdapterActivator activator = new ResourceAdapterActivator(container, new URL(pathname), deploymentName,
                    new File(pathname), cl, cmd, ijmd);
            activator.setConfiguration(getConfig().getValue());
            // FIXME!!, this should probably be done by IJ and not the service
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

            this.setConfiguration(getConfig().getValue());

            this.start();

            CommonDeployment dep = this.createObjectsAndInjectValue(url, deploymentName, root, cl, cmd, ijmd);

            return dep;
        }
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

            final AS7RaXmlDeployer raDeployer = new AS7RaXmlDeployer(context.getChildTarget(), connectorXmlDescriptor.getUrl(),
                    deploymentName, root, module.getClassLoader(), cmd, raxml, ijmd);

            raDeployer.setConfiguration(config.getValue());

            CommonDeployment raxmlDeployment = null;
            try {
                raxmlDeployment = raDeployer.doDeploy();
            } catch (Throwable t) {
                throw new StartException("Failed to start RA deployment [" + deploymentName + "]", t);
            }
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

            this.setConfiguration(getConfig().getValue());

            this.start();

            CommonDeployment dep = this.createObjectsAndInjectValue(url, deploymentName, root, cl, cmd, ijmd, ra);

            return dep;
        }
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

    public synchronized void start(StartContext startContext) throws StartException {
        try {
            final ServiceContainer container = startContext.getController().getServiceContainer();

            CommonDeployment deploymentMD = getDeployer().deploy(container);
            if (deploymentMD.getCfs().length != 1) {
                throw new StartException("unable to start the ds because it generate more than one cf");
            }
            sqlDataSource = (javax.sql.DataSource) deploymentMD.getCfs()[0];
            log.debugf("Adding datasource: %s", deploymentMD.getCfJndiNames()[0]);
        } catch (Throwable t) {
            throw new StartException("Error during the deployment of " + jndiName, t);
        }
    }
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

    public void start(StartContext context) throws StartException {
        final ServiceContainer container = context.getController().getServiceContainer();
        final URL url = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getUrl();
        final String deploymentName = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getDeploymentName();
        final File root = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getRoot();
        CommonDeployment raDeployment = null;
        final AS7RaDeployer raDeployer = new AS7RaDeployer(context.getChildTarget(), url, deploymentName, root, module.getClassLoader(), cmd,
                ijmd);
        raDeployer.setConfiguration(config.getValue());

        try {
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

            this.setConfiguration(getConfig().getValue());

            this.start();

            CommonDeployment dep = this.createObjectsAndInjectValue(url, deploymentName, root, cl, cmd, ijmd);

            return dep;
        }
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

                        drivers.put(driverName, driver);
                        dataSources = new DatasourcesImpl(null, Arrays.asList(xaDataSourceConfig), drivers);
                    }
                }

                CommonDeployment c = createObjectsAndInjectValue(new URL("file://DataSourceDeployment"), jndiName,
                        "uniqueJdbcLocalId", "uniqueJdbcXAId", dataSources, AbstractDataSourceService.class.getClassLoader());
                return c;
            } catch (MalformedURLException e) {
                throw new DeployException("unable to deploy", e);
            } catch (ValidateException e) {
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

            //never validate bean for services activated in this way (JMS)
            this.getConfiguration().setBeanValidation(false);

            this.start();

            CommonDeployment dep = this.createObjectsAndInjectValue(url, deploymentName, root, cl, cmd, ijmd);

            return dep;
        }
View Full Code Here

Examples of org.jboss.jca.deployers.common.CommonDeployment

            this.setConfiguration(getConfig().getValue());

            this.start();

            CommonDeployment dep = this.createObjectsAndInjectValue(url, deploymentName, root, cl, cmd, ijmd, ra);

            return dep;
        }
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.