By: Neil H - neilhay
Can i pass Datasource to JasperRunManager?
2002-12-31 11:44
I am new to Java so i might be asking this incorrectly. currently my JasperRunManager call looks like:
JasperRunManager.runReportToPdfFile( reportFile.getPath(), filePath + destfilename, parameters, getConnection()
);
I am using Wepshare 4.0 (soon 5.0), i want connection pool and am thinking if i can pass JNDI datasource instead of getConnection. I saw something like JRDatasource, is that same thing?
any sample will be very helpfull!!
Also, nice job on the tool and quick response to our questions!!
Good job.
By: CARLOS ALBERTO SILVA - csilva2001
RE: Can i pass Datasource to JasperRunManager?
2003-01-01 07:19
I think yes. See a example on /demo/samples directory of the project source tree available for download. There are lots of examples exmplaining almost everything. Reading the documentation from the /docs directory would also help.
I hope help you.
An embrace, Carlos
By: Teodor Danciu - teodord
RE: Can i pass Datasource to JasperRunManager?
2003-01-02 02:05
Hi,
JRDataSource is not for that.
JasperReports does not deal with connection
pooling. Your parent application should take care
of obtaining a connection object and then returning
it to the pool.
Thank you,
Teodor
By: Chuck Deal - cdeal
RE: Can i pass Datasource to JasperRunManager?
2003-01-02 08:43
I have the same scenario and what Teodor said is correct.
I get a connection from my connection pool myself and pass that to JasperReports.
Can i pass Datasource to JasperRunManager?
2002-12-31 11:44
I am new to Java so i might be asking this incorrectly. currently my JasperRunManager call looks like:
JasperRunManager.runReportToPdfFile( reportFile.getPath(), filePath + destfilename, parameters, getConnection()
);
I am using Wepshare 4.0 (soon 5.0), i want connection pool and am thinking if i can pass JNDI datasource instead of getConnection. I saw something like JRDatasource, is that same thing?
any sample will be very helpfull!!
Also, nice job on the tool and quick response to our questions!!
Good job.
By: CARLOS ALBERTO SILVA - csilva2001
RE: Can i pass Datasource to JasperRunManager?
2003-01-01 07:19
I think yes. See a example on /demo/samples directory of the project source tree available for download. There are lots of examples exmplaining almost everything. Reading the documentation from the /docs directory would also help.
I hope help you.
An embrace, Carlos
By: Teodor Danciu - teodord
RE: Can i pass Datasource to JasperRunManager?
2003-01-02 02:05
Hi,
JRDataSource is not for that.
JasperReports does not deal with connection
pooling. Your parent application should take care
of obtaining a connection object and then returning
it to the pool.
Thank you,
Teodor
By: Chuck Deal - cdeal
RE: Can i pass Datasource to JasperRunManager?
2003-01-02 08:43
I have the same scenario and what Teodor said is correct.
I get a connection from my connection pool myself and pass that to JasperReports.
0 Answers:
No answers yet