4 messages in org.apache.jackrabbit.usersRe: Jackrabbit/Hibernate/Spring Trans...
FromSent OnAttachments
bilobagOct 31, 2007 8:05 am 
harvey watersOct 31, 2007 9:03 am 
bilobagOct 31, 2007 9:29 am 
Pablo RiosOct 31, 2007 12:10 pm 
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: Jackrabbit/Hibernate/Spring Transactions using JTAActions...
From:bilobag (bilo@hotmail.com)
Date:Oct 31, 2007 9:29:04 am
List:org.apache.jackrabbit.users

Yes, I have looked at the springmodules transaction support, but it looks like it only supports transactions for Jackrabbit. What i need is to be able to join the jackrabbit and hibernate transactions into 1 large transaction. Any ideas?

HarveyWaters wrote:

Have you had a look at the spring modules JCR transaction stuff, it might help you out.

https://springmodules.dev.java.net/

We've set it up and it seems to work fine, although your scenario sounds more complicated.

On 10/31/07, bilobag <bilo@hotmail.com> wrote:

Ok, so i've been trying to figure out how I can set up transactions so that they will wrap around jackrabbit calls and hibernate calls and rollback both if an exception occurs. I currently have Jackrabbit and hibernate both using an Oracle 10 db with Jackrabbit saving binary files to the filesystem. I have read multiple posts and articles and am having a hard time figuring out what I need to do. We are currently using Jackrabbit, hibernate and spring on the tomcat 6 server. Now, it seems like i need to use a JTA implementation like JOTM, Jencks or BTM(bitronix). I'm still not sure which is recommended after reading articles by Matt Raible. Now, if I use JTA, does that mean that I need to use the JCA Jackrabbit package? If so, is this package up to date with all the same functionality as the current jackrabbit 1.3.3 version? The JCA package looks like it includes all of the regular jackrabbit jarfiles in it, but i'm not sure if they are the same. I'm a finding transaction management very complicated and difficult so far, so any advice on this subject is appreciated. It seems like nobody has definitive answers or recommendations. I assume I need to use the JtaTransactionManager, but i do not know what JTA implementation to use and how to configure it with Jackrabbit in Spring. It looks like BTM has a fairly simple configuration, but it requires a connectionPool to be configured which Jackrabbit doesn't have. It would be ideal if there were a transaction manager that could join the JCR LocalTransactionManager and the HibernateTransactionManager. Any info you can give is much appreciated. Thanks.