Replies: 3 comments 4 replies
|
Hi @Atifazrin So depending on your application server you need to configure the data source against your db2 database. Let us know if you need more information. === |
|
The first question now is: how are you using imixs-workflow? As a library in your app, or do you use one of our out of the box applications? The section question: Which application server are you using? Wildfly, Payara, ....? - And how do you run your server - do you use a container? |
|
What you need is to configure the DB2 JDBC Driver into your Wildfly server. in its core you need to add the structure for the lib under /docker/configuration/modules And also you need to adapt the setup into your standalone.xml ....
<!-- imixs-workflow datasource REPLACE THIS WITH YOUR DB2 Driver - -->
<datasource jta="true" jndi-name="java:/jdbc/workflow" pool-name="workflow"
enabled="true" use-ccm="true">
<connection-url>${env.POSTGRES_CONNECTION}</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>postgresql</driver>
<security>
<user-name>${env.POSTGRES_USER}</user-name>
<password>${env.POSTGRES_PASSWORD}</password>
</security>
<validation>
<valid-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker" />
<!-- any background-validation-millis > 0 will enable background validation.
See https://jira.jboss.org/browse/JBAS-4088. -->
<background-validation-millis>60000</background-validation-millis>
<exception-sorter
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
</validation>
</datasource>
<dtivers>
...................
<!-- Postgres Integration - REPLACE THIS WITH YOUR DB2 Driver -->
<driver name="postgresql" module="org.postgresql">
<driver-class>org.postgresql.Driver</driver-class>
</driver>
....I think you can remove the valid-connection-checker - this is only for production. But you need to replace the Did this help you? |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I been using workflow engine such as jBPM and Node-red as my daily work, i stumble across Imixs Workflow and been playing around for 2 days , and i got a question on how to connect to DB2 instance as there is not documentation on this recorded. Really appreciate if can get answer on this. Thank you in advance
All reactions