3 Replies Latest reply on Feb 5, 2015 2:02 AM by wayne_du

    jbmp connect to db2  problems

    wayne_du

      I want to use db2 10.1 for jbpm 6.1, I refer to the jbpm 6.1 user guide . But i still hava some question for help.

      1  In build.properties file, how can i config those values, "db.driver.download.ur" especially

          db.name=db2

          db.drive.module.prefix=com/db2

          db.drive.jar.name=${db.Name}.jar

          db.driver.download.url=

       

       

      2     Pls help me to check that config.

             <datasources>

                  <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">

                    <connection-url>jdbc:db2://localhost:50000/jbpm</connection-url>

                    <driver>db2</driver>

                    <security>

                      <user-name>username</user-name>

                      <password>password</password>

                    </security>

                  </datasource>

                  <drivers>

                    <driver name="db2" module="com.ibm.db2.jcc.DB2Driver">

                      <xa-datasource-class>org.db2.jdbcx.JdbcDataSource</xa-datasource-class>

                    </driver>

                  </drivers>

                </datasources>

        • 1. Re: jbmp connect to db2  problems
          sanjay05222

          I think you can manually configure the wildfly and add the modules to it at that point you don't have to worry about it and you can remove that target not to invoke in build.xml.

          you might go to the maven repository where IBM driver is published or go to DB2 Driver is posted downloadLink

          and configure the JDBC driver provided over here JDBC Configurations Details

          If you ask me steps .

          1. Download the IBM DB2 driver .

          2. Go to the wild fly home and create a folder in modules  com/ibm/db2/main/module.xml. configure the driver jars ( Look at the MYSQL Example )

          3. Copy the driver jar

          4. make sure that standalone-full.xml  has the JDBC JNDI configuration details before you start the wildfly. (You Seem to have done correctly )


          All ready to do go , if you read the build.xml you can modify the way you want.


          Hope this helps.


          Sanjay Gautam

          (please do mark answer helpful if you think so )

          • 2. Re: jbmp connect to db2  problems
            jaikiran

            Moved this thread to jBPM forum, since the question looks very much specific to that project. Someone there might be able to help more.

            • 3. Re: jbmp connect to db2  problems
              wayne_du

              Thanks for your help, I will try it again.