Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-201

make JDBC cache store use DB transactions for commit/rollback

XMLWordPrintable

      current impl of JDBC cache store does not use DB transaction (nor local transactions/Connection.setAutocommit(false)) for storing the modifications created within a transaction. This might leave the store in an inconsistent state one operation fails during commit. This should be changed to either 1. use local transactions or 2. register the driver as an XAResource and rely on the TM to manage the boundaries. I would go for 1, as it would be more consistent with other CStore implementation (different cache store interceptor should be used for managing the 2'nd approach).

            remerson@redhat.com Ryan Emerson
            mircea.markus Mircea Markus (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: