Examples of OdeConfigProperties


Examples of org.apache.ode.il.config.OdeConfigProperties

     * In-memory DataSource, or <code>null</code> if we are using a real DS. We need this to shutdown the DB.
     */
    private DataSource _inMemDs;

    public ProcessStoreImpl() {
        this(null, null, "", new OdeConfigProperties(new Properties(), ""), true);
    }
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

            if (_daoCF == null)
                throw new RuntimeException("No DAO");
            _server.setDaoConnectionFactory(_daoCF);
            if (_scheduler == null)
                throw new RuntimeException("No scheduler");
            _store = new ProcessStoreImpl(_eprContext, _dataSource,"jpa", new OdeConfigProperties(new Properties(), ""), true);
            _server.setTransactionManager(_txManager);
            _server.setScheduler(_scheduler);
            _server.setEndpointReferenceContext(createEndpointReferenceContext());
            _server.setMessageExchangeContext(createMessageExchangeContext());
            _server.setBindingContext(createBindingContext());
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

        _server.setScheduler(scheduler);
        _server.setBindingContext(new BindingContextImpl());
        _server.setMessageExchangeContext(mexContext);
        _server.setTransactionManager(_txm);
        scheduler.setJobProcessor(_server);
        store = new ProcessStoreImpl(null, null, "jpa", new OdeConfigProperties(new Properties(), ""), true);
        // not needed: we do eclipcitly in doDeployment
//        store.registerListener(new ProcessStoreListener() {
//            public void onProcessStoreEvent(ProcessStoreEvent event) {
//                // bounce the process
//                _server.unregister(event.pid);
//                if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
//                    ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(event.pid);
//                    // Test processes always run with in-mem DAOs
//                    conf.setTransient(true);
//                    _server.register(conf);
//                }
//            }
//        });
        _server.setConfigProperties(new OdeConfigProperties(getConfigProperties(), ""));
        // _server.registerBpelEventListener(new DebugBpelEventListener());
        _server.init();
        _server.start();
    }
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

    private BpelServerImpl _bpelServer;
    private ExecutorService _executor;
    private Scheduler _scheduler;

    public void init() throws ODEInitializationException {
        _config = new OdeConfigProperties(new Properties(), "ode-sca");

        // Setting work root as the directory containing our database (wherever in the classpath)
        URL dbLocation = getClass().getClassLoader().getResource("jpadb");
        if (dbLocation == null)
            throw new ODEInitializationException("Couldn't find database in the classpath");
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

        Properties p = System.getProperties();
        p.put("derby.system.home", "target");

        Properties confProps = new Properties();
        confProps.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=false)");
        _config = new OdeConfigProperties(confProps, "ode-sca");

        // Setting work root as the directory containing our database (wherever in the classpath)
        URL dbLocation = getClass().getClassLoader().getResource("jpadb");
        if (dbLocation == null)
            throw new ODEInitializationException("Couldn't find database in the classpath");
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

        p.put("derby.system.home", "target");

        Properties confProps = new Properties();
        confProps.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=false)");
       
        _config = new OdeConfigProperties(confProps, "ode-sca");

        // Setting work root as the directory containing our database
        try {
          _workRoot = getDatabaseLocationAsFile();
        } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

    public EmbeddedODEServer(TransactionManager txMgr) {
        _txMgr = txMgr;
    }
   
    public void init() throws ODEInitializationException {
        _config = new OdeConfigProperties(new Properties(), "ode-sca");

        // Setting work root as the directory containing our database (wherever in the classpath)
        URL dbLocation = getClass().getClassLoader().getResource("jpadb");
        if (dbLocation == null)
            throw new ODEInitializationException("Couldn't find database in the classpath");
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

     * In-memory DataSource, or <code>null</code> if we are using a real DS. We need this to shutdown the DB.
     */
    private DataSource _inMemDs;

    public ProcessStoreImpl() {
        this(null, null, "", new OdeConfigProperties(new Properties(), ""), true);
    }
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

    protected DataSource getDataSource() throws DatabaseConfigException {
        if (ds == null) {
            Properties props = new Properties();
            props.setProperty(OdeConfigProperties.PROP_DAOCF, System.getProperty(OdeConfigProperties.PROP_DAOCF, OdeConfigProperties.DEFAULT_DAOCF_CLASS));
            OdeConfigProperties odeProps = new OdeConfigProperties(props,"");
            db = Database.create(odeProps);
            db.setTransactionManager(txm);
            db.start();
            this.ds = db.getDataSource();
        }
View Full Code Here

Examples of org.apache.ode.il.config.OdeConfigProperties

            if (_scheduler == null)
                throw new RuntimeException("No scheduler");
            createEndpointReferenceContext();
            Properties storeProps = new Properties();
            storeProps.setProperty("hibernate.hbm2ddl.auto", "update");
            _store = new ProcessStoreImpl(_eprContext, _dataSource,"hib", new OdeConfigProperties(storeProps, ""), true);
            _server.setScheduler(_scheduler);
            _server.setEndpointReferenceContext(_eprContext);
            _server.setMessageExchangeContext(createMessageExchangeContext());
            _server.setBindingContext(createBindingContext());
            _server.init();
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.