I have 4 tables Each table is updated by 4 different procedures. Each procedure is called by java using 4 different threads. In each thread I am using same connection object(JDBC Datasource connection). After all threads have updated all the tables, then I am committing the connection in java. Data has been saved successfully.
Is this the right way to handle the transaction management using multithreading by sharing the same connection object?
Driver used: org.postgresql.Driver postgres jar version: 42.2.2.jar postgres server version: 10.6
Please provide your suggestions.
Regards, Rakesh Kumar