cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure jdbcDriver in activiti.cfg.xml file to access Wildfly modules

redpe4rl
Champ in-the-making
Champ in-the-making
Hello,
My database Driver is added to wildfly as a module.
How can I configure activiti.cfg.xml file to access to this driver ?
Can someone help me, how do I acheive this.
Regards,
3 REPLIES 3

warper
Star Contributor
Star Contributor
If you have JDBC datasource defined in WildFly configurationlike this:

<datasource jta="true" jndi-name="java:/env/jdbc/activitiDB" pool-name="activitiDB" enabled="true">


you can use it in spring config like this:


    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="java:/env/jdbc/activitiDB"/>
    </bean>

    <bean id="transactionManager"
        class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSource" />
    </bean>

    <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
        <property name="dataSource" ref="dataSource" />
        <property name="transactionManager" ref="transactionManager" />

redpe4rl
Champ in-the-making
Champ in-the-making
Thanks for your help.
Sorry but i am not using spring configuration.
Is there any other solutions ?

jeto1
Champ in-the-making
Champ in-the-making
Could you please post your activiti.cfg.xml ?