XSQLConnectionManagerFactory factory = new XSQLConnectionManagerFactory() {
public XSQLConnectionManager create() {
return new XSQLConnectionManager() {
public XSQLConnection getConnection(String s, XSQLPageRequest xsqlPageRequest) throws SQLException {
return new XSQLConnection(dataSource.getConnection(), s);
}
public void releaseConnection(XSQLConnection xsqlConnection, XSQLPageRequest xsqlPageRequest) {
try {
xsqlConnection.getJDBCConnection().close();