Hi, I would like to connect AWS timestream DB using JDBC, Does, Thingworx supports AWS TimestreamDB?
I was not able to connect the DB,
The isConnected property of the thing remains false, but I am able to see some logs in the application log.
If I try to execute some sample queries, I get the following error: Unable to Invoke Service test1 on timestreamDB : Transactions are not supported.
Solved! Go to Solution.
Hi @sabhz.
We did further research on this and found that Timestream is not currently supported. It's my understanding you can use an MQTT server as a go-between but I don't have any specifics.
Regards.
--Sharon
Hi,
Have a look at this article - "ThingWorx JDBC connection to Amazon Web Services (AWS) Redshift database": https://www.ptc.com/en/support/article/CS293064
Hi @sabharees.
Are you using the latest JDBC driver from Amazon? Have you followed the Amazon guide for connecting?
Regards.
--Sharon
Hi @sabharees.
Have you tried logging in to the db with the account you're using in your service? If that works are you able to submit any updates? You need to verify it isn't a permissions issue?
Regards.
--Sharon
Yes, I tried. The creds. are good enough to access the Db. but in TWX we need transaction requirements.
Due to this lack of transaction requirements I am not able to connect timestream DB.
please find the below error log:
2022-06-29 05:16:25.294+0000 [L: ERROR] [O: c.t.w.Things] [I: ] [U: sab] [S: ] [P: ] [T: http-nio-8080-exec-5] Unable to Invoke Service asd on Test.AWS.TS.T : Transactions are not supported.
even I raised few support tickets as well, but it didn't help.
Hi @sabhz.
We did further research on this and found that Timestream is not currently supported. It's my understanding you can use an MQTT server as a go-between but I don't have any specifics.
Regards.
--Sharon
Hi @slangley ,
Thanks for your response,
The MQTT server was our first attempt but it lacks several security features. eg: certificate based authentication rather than plain user id and password.