Issue Details (XML | Word | Printable)

Key: TRANSACTION-13
Type: New Feature New Feature
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: Cyrille
Votes: 10
Watchers: 13
Operations

If you were logged in you would be able to see more operations.
Commons Transaction

JTA Compliant

Created: 18/Dec/06 01:55 PM   Updated: 10/May/08 10:34 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1

Time Tracking:
Not Specified

Issue Links:
Blocker
 
Dependants
 


 Description  « Hide
Is there a plan to make Commons-Transaction compliant with JTA (Java Transaction API) ?
It would be great to get it.

For exemple, in case of a web file upload, we could make one transaction for tose 2 operations :
1) writing metadata in database (title,description...),
2) writing the file on the filesystem.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Oliver Zeigermann added a comment - 18/Dec/06 02:13 PM
There are no such plans, but commons tx could serve as a basis for such an implementation

Cyrille added a comment - 18/Dec/06 02:24 PM
I think it is a must have feature, because nowdays Transactions are easilly integrated in a application (Spring, AppServer).
Do you know about that work ? Is it a difficult task ? I'm beginner with Java, so I'm afraid to tackle that subject.

Do you know some project about File Transaction and JTA ?


Cyrille added a comment - 30/Dec/06 12:52 PM
there is a discussion about that subject at forum.springframework.org

http://forum.springframework.org/showthread.php?t=32704

Thanks to Jörg !
Happy new year !


Oliver Zeigermann added a comment - 28/Jul/07 03:54 PM
With the new 2.0 version a JTA impelmentation should be a pretty easy thing to do. Except for one thing: an XA reaource (required for that implementation) needs to be able to start its work with one thread and continue with another one. However, this is incompatible with the new implementation of the lock manager. This new implementation is based on Java 1.5 locks which do not support transfer of ownership to other thread.

The lock manager is fully configurable, so maybe a different implementation would do. Options you be to extend Java 1.5 locks or to fall back the 1.x read/write-lock implementation.


Oliver Zeigermann added a comment - 18/Aug/07 09:47 PM
I'd be all for deferring this issue to 2.1 as I will require quite some effort. Concerning lock implementation: There now is a custom juc compatible Lock implementation which - at least principally - would allow passing over locks from one thread to another.

However, this will need more work to find an appropriate interface and protocol for something like that.


Oliver Zeigermann added a comment - 19/Aug/07 01:47 PM
Unless the ResourceRWLock gives us more freedom about the thread an action is exectured with we can not solve this issue.

Geoffrey Wiseman added a comment - 31/Jan/08 06:36 PM
Commons Transaction seems much more useful if I can synchronize it with a database transaction, I have to admit.

Jorg Heymans added a comment - 31/Mar/08 07:39 AM
It is not possible to vote on resolved issues, please leave the ticket open so people can vote on it.

Richard Shu added a comment - 14/Apr/08 07:42 PM - edited
The JTA Compliant feature seems a very useful one; with that it'd be much easier to work with transaction managers like JOTM. Just wonder when this feature will be included in release.

Henri Yandell added a comment - 10/May/08 10:34 PM
Reopening as 'Later' is not a good part of JIRA workflow. Setting the fix version to 2.1 - ie "Later".