How to configure jdbcDriver in activiti.cfg.xml file to access Wildfly modules
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2016 07:22 AM
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,
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,
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2016 08:57 AM
If you have JDBC datasource defined in WildFly configurationlike this:
you can use it in spring config like 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" />
…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2016 09:46 AM
Thanks for your help.
Sorry but i am not using spring configuration.
Is there any other solutions ?
Sorry but i am not using spring configuration.
Is there any other solutions ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2016 11:22 AM
Could you please post your activiti.cfg.xml ?