Yes. Already done couple of year ago. Works like a charm.
I use JasperStarter to execute reports and ViewerJS to show the generated pdf.