I'am currently following a tutorial ( http://kristantohans.wordpress.com/2010/03/01/new-to-jasperreport-build-your-first-impressive-application-part-2/ ) and he use a java db connection (conn)
50 try {
51 //Fill the report with parameter, connection and the stream reader
52 JasperPrint jp = JasperFillManager.fillReport(is, null, conn);
How can i do to connect to mongo here ? Because with mongo i have :
Mongo m = new Mongo( "localhost" , 27017 );
DB db = m.getDB( "test" );
and
JasperPrint jp = JasperFillManager.fillReport(is, null, m);
doesn't work
Thanks !