I want a handle to connection object in grails controller class (written in groovy). I read somewhere that I need to first obtain datasource object and call a method getConnection on it to get the connection object.
I am unable to find how to obtain the datasource object in grails controller. Kindly help.