mendix / database-connector

https://appstore.home.mendix.com/link/app/2888/Mendix/Database-Connector
Apache License 2.0
9 stars 25 forks source link

Close Connection #9

Open laithalqudah opened 6 years ago

laithalqudah commented 6 years ago

is the two actions close the opened connection after returning the result?

arjenw commented 6 years ago

Can you try to rephrase your question, please? Unfortunately, I am not able to understand what you are asking..

laithalqudah commented 6 years ago

@arjenw when i make a query or run a statment, the java action should open a connction for, is this opened connection closed directly after returned result?or still open for a specific period?

grootjans commented 6 years ago

As you could see in the JdbcConnector, a try-with-resource is used both on the connection and the statement. Given that pooling is used, the connection is used, committed, then returned to the connection pool, as per JDBC design.