Package org.apache.ode.il.config

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


   
    public void init() throws ODEInitializationException {
        Properties p = System.getProperties();
        p.put("derby.system.home", "target");
       
        _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


        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

    public OdeService(CamelContext camelContext) {
        this.camelContext = camelContext;
    }

    private void initBpelServer() throws Exception {
        config = new OdeConfigProperties(new File(getInstallRoot() + "/" + CONFIG_FILE_NAME), CONFIG_FILE_NAME);
        config.load();

        server = new BpelServerImpl();
        // We don't want the server to automatically load deployed processes, we'll do that explicitly
        endpointReferenceContext = new OdeEndpointReferenceContext();
View Full Code Here

        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

        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

     * 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

            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

        _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

    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

        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

TOP

Related Classes of org.apache.ode.il.config.OdeConfigProperties

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.