Re: Interface to integrate transactions with Clojure transactions

2010-06-13 Thread Pedro Teixeira
There is an old patch that was contributed to the list: http://groups.google.com/group/clojure/browse_thread/thread/aa22a709501a64ac I'm also interested in this, it would be a nice extension point have without having to patch clojure.core. On Jun 10, 6:58 pm, James Reeves wrote: > On 10 June

Re: Interface to integrate transactions with Clojure transactions

2010-06-12 Thread Daniel Werner
On Jun 11, 11:41 pm, Chris Kent wrote: > Is this what you're thinking of? > > http://groups.google.com/group/clojure/browse_thread/thread/aa22a7095... > > I'm not sure what happened, it sounded promising but I've not seen it > mentioned again since this thread went quiet. This is exactly what I w

Re: Interface to integrate transactions with Clojure transactions

2010-06-11 Thread Chris Kent
> Somebody on this list started an actual implementation of such an > integration a couple of months ago. Try searching through the group's > archive for terms like TransactionManager, or something very similar. > Unfortunately my Java-fu is lacking enough for me not to remember the > exact interfa

Re: Interface to integrate transactions with Clojure transactions

2010-06-11 Thread Daniel Werner
On Jun 10, 12:26 pm, Michael Jaaka wrote: > Is there any way to integrate database transaction with Clojure > transaction? > It would be nice if operations done in memory and on database would be > commited atomicly with the end of transaction scope in Clojure. > Such interface had to be also awar

Re: Interface to integrate transactions with Clojure transactions

2010-06-11 Thread Antony Blakey
On 11/06/2010, at 1:48 PM, Antony Blakey wrote: > > On 11/06/2010, at 7:28 AM, James Reeves wrote: > >> On 10 June 2010 22:40, Michael Jaaka wrote: >>> Not good, since if database commit fail it is too late for dosync to >>> rollback. >>> In fact database commit should somehow cooparate with d

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread Antony Blakey
On 11/06/2010, at 7:28 AM, James Reeves wrote: > On 10 June 2010 22:40, Michael Jaaka wrote: >> Not good, since if database commit fail it is too late for dosync to >> rollback. >> In fact database commit should somehow cooparate with dosync commit >> which is just a case of distributed transact

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread James Reeves
On 10 June 2010 22:40, Michael Jaaka wrote: > Not good, since if database commit fail it is too late for dosync to > rollback. > In fact database commit should somehow cooparate with dosync commit > which is just a case of distributed transaction. You're right. In which case, I don't believe ther

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread James Reeves
On 10 June 2010 11:26, Michael Jaaka wrote: > Is there any way to integrate database transaction with Clojure > transaction? > It would be nice if operations done in memory and on database would be > commited atomicly with the end of transaction scope in Clojure. > Such interface had to be also aw

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread Michael Jaaka
Not good, since if database commit fail it is too late for dosync to rollback. In fact database commit should somehow cooparate with dosync commit which is just a case of distributed transaction. On 10 Cze, 23:11, James Reeves wrote: > On 10 June 2010 11:26, Michael Jaaka wrote: > > > Is there

Interface to integrate transactions with Clojure transactions

2010-06-10 Thread Michael Jaaka
Hi! Is there any way to integrate database transaction with Clojure transaction? It would be nice if operations done in memory and on database would be commited atomicly with the end of transaction scope in Clojure. Such interface had to be also aware of changes made by concurrent transactions, so