Here's a solution for distributed transactions across JackRabbit and MySQL using Spring. http://th1rty7.blogspot.com/2009/03/spring-distributed-transactions-across.html It might be a bit outdated, but I haven't seen a better solution so far. Hope it helps.
On Wed, Mar 10, 2010 at 5:05 PM, <[email protected]> wrote: > Hi All, > > I configured jackrabbit-jca in JBoss, and currently I get a Session object > with the following code: > > InitialContext ctx = new InitialContext(); > JCARepositoryHandle repository = (JCARepositoryHandle) > ctx.lookup(jndiName) ; > Credentials credentials = new SimpleCredentials(userName, > password) ; > Session session = repository.login(credentials); > > I'd like to use spring to do this, and use the JcrTemplate and > JcrCallback, but don't know how! > Can anyone please tell me how to configure it in the > applicationContext.xml? > > Thank you in advance. > > -- sp
