Keep connection open over multiple JNI calls

I have a dll (which I use via the JNI) which opens a connection to a database and gets some data. I need to get data every 10 minutes. However, actually connecting to the database is very slow.

Is it possible to create the connection once and reuse it, or do I have to connect every time.

NOTE: It is not possible for me to connect to this database through Java directly.

[390 byte] By [rojocaa] at [2007-10-3 10:28:57]
# 1
The DLL will remain loaded between calls, so if you use a global variable to store the connection then it should be ok.
jim.marshalla at 2007-7-15 5:51:31 > top of Java-index,Java HotSpot Virtual Machine,Specifications...