Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I imported the relational database extension for DB2 connectivity, but the default JDBC driver class isn't what my organization uses to connect to DB2. We use another driver class called "com.ibm.as400.access.AS400JDBCDriver". I tried setting this in the JDBC Driver Class Name field in the DB2 Thing configuration, but I wasn't able to query a database. I have a Jar file that we typically have to deploy to use this DB2 connection driver and I assume I have to deploy this Jar file so that ThingWorx can see it and know it exists when I try to make a connection to a DB2 database.
How do I deploy Jar file with ThingWorx/Apache so that I can use this JDBC driver?
Here are my settings (some information has been generalized):
Solved! Go to Solution.
Hi,
You may build your own jdbc package/extension:
Configuration Field Explanation:
Alternatively, you may download the jdbc connector creator from the marketplace here https://marketplace.thingworx.com/Items/jdbc-connector-extension
Then you may just view the mashup and use it to package your jdbc jar into an extension (which can be later imported into Thingworx).
Also, please refer to this topic Steps to connecting to your Relational Database
Hi,
You may build your own jdbc package/extension:
Configuration Field Explanation:
Alternatively, you may download the jdbc connector creator from the marketplace here https://marketplace.thingworx.com/Items/jdbc-connector-extension
Then you may just view the mashup and use it to package your jdbc jar into an extension (which can be later imported into Thingworx).
Also, please refer to this topic Steps to connecting to your Relational Database
Brent,
Any update on this? Was Polina Osipova's post helpful? If so, could you click on the "correct answer" or "mark as helpful" button and let us know?
Hi Jeremy,
Polina's answer was exactly correct.
Thanks Polina for the prompt reply.
Thanks Brent!