Package com.ibm.batch.container.config

Examples of com.ibm.batch.container.config.IBatchConfig


    public boolean setDataSourceName(String dsName) {
        try {

            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
            DatabaseConfigurationBean dbBean = new DatabaseConfigurationBean();
            dbBean.setJndiName(dsName);
            batchConfig.setDatabaseConfigurationBean(dbBean);


            Java2DBProcessorHelper java2DBProcessorHelper = new  Java2DBProcessorHelper(this.getClass().getSimpleName());
            File ddlDir = new File(serverContext.getInstallRoot(), "/lib");
View Full Code Here


    }

    public boolean setThreadPoolConfiguration() {
        try {
            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
            GlassfishThreadPoolConfigurationBean threadPoolBean = new GlassfishThreadPoolConfigurationBean();
            threadPoolBean.setIdleThreadTimeout(helper.getMaxIdleThreadTimeout());
            threadPoolBean.setMaxQueueSize(helper.getMaxQueueSize());
            threadPoolBean.setMaxThreadPoolSize(helper.getMaxThreadPoolSize());
            threadPoolBean.setMinThreadPoolSize(helper.getMinThreadPoolSize());
            batchConfig.setGlassfishThreadPoolConfigurationBean(threadPoolBean);
            threadPoolInitialized = true;
        } catch (Throwable th) {
            threadPoolInitialized = false;
            if (logger.isLoggable(Level.FINE))
                logger.log(Level.FINE, "Exception in setThreadPoolConfiguration: ", th);
View Full Code Here

                jobExecutorService = batchRuntimeConfiguration.getJobExecutorService();
                persistenceStore = batchRuntimeConfiguration.getPersistenceStore();
            }

            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();

            databaseConfigurationBeanProxy = new DatabaseConfigurationBeanProxy(this);
            batchConfig.setDatabaseConfigurationBean(databaseConfigurationBeanProxy);

            glassFishThreadPoolConfigurationBeanProxy = new GlassFishThreadPoolConfigurationBeanProxy(this);
            batchConfig.setGlassfishThreadPoolConfigurationBean(glassFishThreadPoolConfigurationBeanProxy);

        } catch (Throwable th) {
            //TODO: Log
        }
    }
View Full Code Here

    public boolean setDataSourceName(String dsName) {
        dbInitialized = false;
        try {

            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
            DatabaseConfigurationBean dbBean = new DatabaseConfigurationBean();
            dbBean.setJndiName(dsName);
            batchConfig.setDatabaseConfigurationBean(dbBean);


            Java2DBProcessorHelper java2DBProcessorHelper = new  Java2DBProcessorHelper(this.getClass().getSimpleName());
            File ddlDir = new File(serverContext.getInstallRoot(), "/lib");
            java2DBProcessorHelper.executeDDLStatement(ddlDir.getCanonicalPath() + CREATE_TABLE_DDL_NAME, dsName);
View Full Code Here

    public boolean setThreadPoolConfiguration() {
        threadPoolInitialized = false;
        try {
            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
            GlassfishThreadPoolConfigurationBean threadPoolBean = new GlassfishThreadPoolConfigurationBean();
            threadPoolBean.setIdleThreadTimeout(helper.getMaxIdleThreadTimeout());
            threadPoolBean.setMaxQueueSize(helper.getMaxQueueSize());
            threadPoolBean.setMaxThreadPoolSize(helper.getMaxThreadPoolSize());
            threadPoolBean.setMinThreadPoolSize(helper.getMinThreadPoolSize());
            batchConfig.setGlassfishThreadPoolConfigurationBean(threadPoolBean);
            threadPoolInitialized = true;
        } catch (Throwable th) {
            th.printStackTrace();
        }
View Full Code Here

    public boolean setDataSourceName(String dsName) {
        try {

            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
            DatabaseConfigurationBean dbBean = new DatabaseConfigurationBean();
            dbBean.setJndiName(dsName);
            dbBean.setSchema("APP");
            batchConfig.setDatabaseConfigurationBean(dbBean);

/*
Java2DBProcessorHelper java2DBProcessorHelper = new  Java2DBProcessorHelper(this.getClass().getSimpleName());
File ddlDir = new File(serverContext.getInstallRoot(), "/lib");

View Full Code Here

    }

    public boolean setThreadPoolConfiguration() {
        try {
            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
            GlassfishThreadPoolConfigurationBean threadPoolBean = new GlassfishThreadPoolConfigurationBean();
            threadPoolBean.setIdleThreadTimeout(helper.getMaxIdleThreadTimeout());
            threadPoolBean.setMaxQueueSize(helper.getMaxQueueSize());
            threadPoolBean.setMaxThreadPoolSize(helper.getMaxThreadPoolSize());
            threadPoolBean.setMinThreadPoolSize(helper.getMinThreadPoolSize());
            batchConfig.setGlassfishThreadPoolConfigurationBean(threadPoolBean);
            threadPoolInitialized = true;
        } catch (Throwable th) {
            threadPoolInitialized = false;
            if (logger.isLoggable(Level.FINE))
                logger.log(Level.FINE, "Exception in setThreadPoolConfiguration: ", th);
View Full Code Here

                jobExecutorService = batchRuntimeConfiguration.getJobExecutorService();
                persistenceStore = batchRuntimeConfiguration.getPersistenceStore();
            }

            ServicesManager servicesManager = ServicesManager.getInstance();
            IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();

            databaseConfigurationBeanProxy = new DatabaseConfigurationBeanProxy(this);
            batchConfig.setDatabaseConfigurationBean(databaseConfigurationBeanProxy);

            glassFishThreadPoolConfigurationBeanProxy = new GlassFishThreadPoolConfigurationBeanProxy(this);
            batchConfig.setGlassfishThreadPoolConfigurationBean(glassFishThreadPoolConfigurationBeanProxy);

        } catch (Throwable th) {
            //TODO: Log
        }
    }
View Full Code Here

TOP

Related Classes of com.ibm.batch.container.config.IBatchConfig

Copyright © 2018 www.massapicom. 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.