This issue can't be edited

Because it belongs to an archived project. Jira admins can restore projects from the archive.

Make sure RESOURCE_LOCAL persistence unit do not require a transaction manager

Description

When working with a non-transactional stores and TX type "RESOURCE_LOCAL" one still needs to provide a JTA implementation atm. We should explore a custom "OGM local" Transaction implementation to be used in such cases.

Mailing list: https://lists.jboss.org/pipermail/hibernate-dev/2015-January/012046.html

Environment

None

Activity

Emmanuel BernardFebruary 25, 2015 at 6:20 PM

Let's not address the question of raising an exception on rollback() within that issue.
The question of rollback raising an exception is and I think this will be addressed by OGM-465.

Gunnar MorlingFebruary 25, 2015 at 4:47 PM

They would still use transaction.begin() / commit(), as that's what we use for controlling the flush cycle. In that IRC chat linked above we discussed some ideas how that Transaction implementation could look like. Basically it would call some SPI in ORM for triggering the flush.

Probably it'd make sense to raise a meaningful exception when trying to invoke rollback as that's not possible with the non-transactional backends. The transactional backends we have (ISPN, Neo4j) work with JTA; I don't think there is any need atm. for making them work with RESOURCE_LOCAL. It might make sense for some theoretical store in the future which has some kind of "local" TX but does not work with JTA.

Hardy FerentschikFebruary 25, 2015 at 4:26 PM

What does that imply for the user? Does he in his user code still begin and commit a transaction? Or can he leave transaction handling out?

Emmanuel BernardJanuary 14, 2015 at 9:42 AM

I changed the title to be more specific. Super generic titles I found tend to be either ignored, require to go into the detail page or if the detail page is not filled, we simply don't remember what the issue was about.

Fixed

Details

Assignee

Reporter

Participants

Emmanuel Bernard
Gunnar Morling
Hardy Ferentschik

Components

Fix versions

Priority

Created January 14, 2015 at 8:56 AM
Updated March 27, 2015 at 3:27 PM
Resolved March 11, 2015 at 1:50 PM