Florent Guillaume wrote:
Florent Guillaume wrote:
Tobias Bocanegra wrote:
you can't use the xaresource directly
Why? I'm using an API that's legitimate and public.
you need to create a user transaction.
I'm the sole user of Jackrabbit and the transactions here. Behind the
scene, a user transaction does exactly what I do: xaresource.start()
with the proper arguments, do some work then end() it and commit() it.
Jackrabbit's
test/java/org/apache/jackrabbit/core/UserTransactionImpl.java is
pretty simple.
and you can use the transaction only once.
I've updated my code to use different xid instances for each
transaction, and it still crashes. Updated jython code attached.
Hm ok it may be a problem with how my DummyXid class manages its
globalTxId.
I'll implement a proper one and see what it gives.
Even with cannonical xid management I've still got a crash (even earlier
than before, on the 3rd transaction).
I've opened http://issues.apache.org/jira/browse/JCR-566 let's keep
discussing there.
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]