AnsweredAssumed Answered

Activiti Database configuration

Question asked by pp84 on Jul 18, 2012
Latest reply on Jul 18, 2012 by frederikheremans1
How does one dynamically specify schema name while using spring activiti configuration with jndi datasource?

I have the following configuration
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
       <property name="dataSource" ref="dataSource" />
       <property name="transactionManager" ref="transactionManager" />
       <property name="deploymentResources" value="classpath*:auto.*.bpmn20.xml" />
       <property name="databaseSchemaUpdate" value="false" />
       <property name="jobExecutorActivate" value="false" />
       <property name="dbIdentityUsed" value="false" />
       <property name="history" value="full" />             
    </bean>

<jee:jndi-lookup id="dataSource" jndi-name="jdbc/activitiDS" resource-ref="true"/>

By default the sql statement generated is using the user id of the connection as schema name?
I would like to configure the schema name from a properties file.
How to do that?

Outcomes