7 messages in org.apache.jackrabbit.usersRe: Transactions with Jackrabbit?
FromSent OnAttachments
Paco AvilaOct 7, 2007 10:50 am 
Stefan IvanovOct 8, 2007 2:26 am 
Paco AvilaOct 8, 2007 3:33 am 
Jukka ZittingOct 8, 2007 3:48 am 
Stefan IvanovOct 8, 2007 5:00 am 
Paco AvilaOct 10, 2007 9:44 am 
Paco AvilaOct 10, 2007 11:34 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Transactions with Jackrabbit?Actions...
From:Paco Avila (pav@git.es)
Date:Oct 10, 2007 11:34:27 am
List:org.apache.jackrabbit.users

El mié, 10-10-2007 a las 18:44 +0200, Paco Avila escribió:

El lun, 08-10-2007 a las 11:26 +0200, Stefan Ivanov escribió:

You can see here: http://jackrabbit.apache.org/faq.html#using-jta

I use the spring-modules-0.8 with the jackrabbit 1.3.1 and I have bad expirience with it. Especially concurent acces to the same node and node versioning are not thread save. Thas's why i couldn't use versioning in my prototype system and have my own implementation.

I have some troubles with JTA. In my code I perform a node lock and a checkout. If the checkout fails the lock should be rolledback, but... it is not working :(

try { xares.start(xid, XAResource.TMNOFLAGS); node.lock(true, false);

---> SOME EXCEPTION IS THROWN <---

node.checkout(); xares.end(xid, XAResource.TMSUCCESS); xares.prepare(xid); xares.commit(xid, false); } catch (Exception e) { xares.prepare(xid); xares.rollback(xid); }

Answering to myselft: works ok, there was a bug in my code. Sorry! -- GIT CONSULTORS

www.git.es

Tel: +34 971 498 310 Fax: +34 971 496 189

C/ Francesc Rover, 2B. 07003 Palma de Mallorca – Illes Balears (España)