The parameter unreturnedConnectionTimeout
times out unreturned connections after a given period of time. I'm trying to decide whether I should use this in my production persistence.xml
? A big plus of using this is that the Connection Pool will be able to recover from leaky connections. A big minus is that leaky connections will be very difficult to detect.
Should I use unreturnedConnectionTimeout
in production applications? If yes, what should its value be? Are there any other pros/cons I should consider?