I have a static java connection to a databases.
1st Thread
with my static connection I am creating a statement and call to executeQuery() method. at this point I'm waiting because the query results is very big and I have to wait more than 15 minutes.
2nd Thread
with the same static connection I am trying to make a call to createStatement() method. And here the 2nd thread is blocked.
There are many ways to solve this issue, but I don't find anywhere why this aproach should not working. Any ideas?