Jump to content
We've recently updated our Privacy Statement, available here ×

Can JasperFillManager.fillReport(report, parameters, conn) lock my database?


marie_1

Recommended Posts

 

Hi,
 
We've encountered a situation where JasperFillManager.fillReport(report, parameters, conn) seems to be locking the database, even when passed a read-only connection.  Is this possible?  We have users running multiple large reports encountering the database locking.
 
Also, we use a home grown java program to run reports created and compiled in iReports.  Is it possible to have 2 or more JasperFillManager.fillReport calls running against the same database without locking each other out?
 
Here's a code snippet showing the fillManager call:
 
    Connection conn = null;
    SQLiteConfig config = new SQLiteConfig();
    config.setReadOnly(true);
 
    conn = DriverManager.getConnection(connectionStatement, config.toProperties());
    conn.setAutoCommit(false);
 
    System.out.println("Is connection ready only:   " + conn.isReadOnly());
 
    JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
    conn.close();
    
Any help on the issue of ensuring that the connection is readonly would be appreciated. 
 
Marie
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...