Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002001 [Resin] minor always 09-10-07 08:42 09-10-07 12:32
Reporter sam View Status public  
Assigned To
Priority normal Resolution no change required  
Status closed   Product Version 3.1.2
Summary 0002001: database auto-commit=false option
Description (rep by V Simkus)

I'm trying to run Jasper report server on Resin
instead of Tomcat. It seems to work OK except for when it comes to
large objects at which point the PostgreSQL driver throws an exception
that all LO operations must be performed inside a transaction...

Tomcat has an option to turn off auto-commits at the resource
definition. Does Resin have anything along these lines?

 <database>
    ...

    <connection>
      <auto-commit>false</auto-commit>
    </connection>
Additional Information
Attached Files

- Relationships

- Notes
(0002288)
sam
09-10-07 12:32

The transaction filter can be used to colve this problem:

 <filter filter-name='transaction-filter'
         filter-class='com.caucho.filters.TransactionFilter'/>

  <filter-mapping url-pattern='/*'
                  filter-name='transaction-filter'/>

The example above causes all requests to be done within a transaction.
The url-pattern could be made more specific so that only those requests that use jasper reports are captured by the filter.
 

- Issue History
Date Modified Username Field Change
09-10-07 08:42 sam New Issue
09-10-07 12:32 sam Status new => closed
09-10-07 12:32 sam Note Added: 0002288
09-10-07 12:32 sam Resolution open => no change required
09-10-07 12:32 sam Fixed in Version  => 3.1.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker