how get datasource as object for passing to ireport calling
hi master
sir how get datasource object
such as netbeans give me idea
====================
Context ctx = null;
DataSource ds = null;
try {
ctx = new InitialContext();
ds = (DataSource) ctx.lookup("jdbc/as400");
} catch (NamingException ex) {
ex.printStackTrace();
}
Connection conn = ds.getConnection();
ServletOutputStream ouputStream = response.getOutputStream();
JasperPrint jasperPrint = JasperManager.fillReport(jasperReport, parameters, conn);
=================
can i get datasouce in studio crater
and pass to ireport for calling report
please give me idea how i get datasource
thank's
aamir

