JDBC Connection auto-close do not work when DataSource is cached
When DataSource instance returned from a JNDI lookup is cached at the application level, an association with the current Thread is created, so any subsequent calls with a different Thread will not trigger the connection auto-closing.