I want to get the current connection from Spring context and then pass to my JasperPrint object.
Something like this:
//java.sql.Connection con = StringContext.getConnection();
JasperPrint jp = JasperFillManager.fillReport("reports/my_report.jasper", parameters, con);
How can I make this works?
ps: I've tried using DataSourceUtils, but the getConnection() method needs a DataSource object as parameter, where do I get this object?