I am trying to setup XA transactions in Spring to wrap up Hibernate and Jackrabbit transactions. My hibernate transactions are working, but it seems that Jackrabbit is not joining the transaction. The following test will not rollback when the exception is thrown.
public String addFile(FileNodeType fileNode, InputStream in) throws
myException {
…
getJcrDAO().save();
throw new RepositoryException("Exception thrown");
}
And here is part of my Spring configuration file:
@driverClassName@
@driverUrl@
5
100
0
3
5
@username@
@password@
/org/ABC/myProj/model/UserInfo.hbm.xml
...
org.hibernate.dialect.Oracle9Dialect
true
true
3
5
20
true
org.hibernate.cache.NoCacheProvider
false
false
/WEB-INF/myNodeTypes.cnd
true
PROPAGATION_REQUIRED
...
...
Versions:
Tomcat 6.0
Hibernate 3.2
Jackrabbit 1.3.3
Jencks 1.3
Spring 2.0.1
Please help!
--
View this message in context:
http://www.nabble.com/Jackrabbit%2BHibernate_Jencks-xa-transactions-in-Spring-tp15739597p15739597.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
