So as I understand correct you want to reset this variable for the next use?
Does the <valid-connection-checker-class-name> Element (see link above) of the datasource help if you implement a class to reset the connection?
Reply to this message by going to Community
Start a new discussion in Datasource Configuration at Community