jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo Rios" <pr...@bea.com>
Subject RE: Jackrabbit/Hibernate/Spring Transactions using JTA
Date Wed, 31 Oct 2007 19:10:51 GMT
As far as I know you require the Jackrabbit JCA resource adapter. Take a
look at http://swik.net/Spring/Spring's+corner/Jencks+in+action/bbjo; I
think it should help you.


-----Original Message-----
From: bilobag [mailto:bilobag@hotmail.com] 
Sent: Wednesday, October 31, 2007 1:29 PM
To: users@jackrabbit.apache.org
Subject: Re: Jackrabbit/Hibernate/Spring Transactions using JTA

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 <bilobag@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
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Jackrabbit-Hibernate-Spring-Transactions-using-
>> JTA-tf4725658.html#a13511385 Sent from the Jackrabbit - Users mailing

>> list archive at Nabble.com.

View this message in context:
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Notice:  This email message, together with any attachments, may contain information  of  BEA
Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,
 copyrighted  and/or legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient, and have received
this message in error, please immediately return this by email and then delete it.

View raw message