AnsweredAssumed Answered

Using data source

Question asked by spark2 on Dec 13, 2013
Latest reply on Dec 16, 2013 by frederikheremans1
I am trying to have basic setup of Activiti in web project deployed on WebSphere 7

I have "jdbc/dbsource" configured as Oracle data source and below is code for Process engine.
Data source test connection is successful.

      ProcessEngineConfiguration config = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
      config.setDatabaseSchemaUpdate("false");
      config.setJobExecutorActivate(true);
      config.setDatabaseType("oracle");
                config.setDataSourceJndiName("jdbc/dbsource");
                ProcessEngine p = config.buildProcessEngine();

               ….

However after initiating, I see in log files that it is taking default h2 database.
I do not have activiti.cfg.xml (I believe it is not required as all configuration is static as above)

What i am missing? How to tell activiti to use datasource and not default h2 database.

Thanks

Outcomes