Atomikos Forum

Configuring Apache Jackrabbit with Atomikos.

I read an older post by Guy stating the following:

"Just do the following:

-start a JTA transaction
-get the current transaction from the TransactionManager instance
-enlist the XAResource(s)
-do your transactional work
-commit the JTA transaction

The Atomikos JTA is Apache-licensed and can be used without any problems in Jackrabbit. There is nothing to configure really, just about everything can be based on defaults.

Best
Guy"

The Session received from the jcr Repository implements the XASession interface which has a getter for an XAResource.  According to the API for XASession, it stated not to call the method directly and to have the Transaction Manager do so instead.  How can I configure Atomikos to call this method and enlist the XAResource automatically?  Or is my only option to do this programmatically?

Thanks!
Thanh
Thanh Thai Send private email
Thursday, May 28, 2009
 
 
Hi,

I don't remember posting this, but it looks like a summary of the JTA/XA interactions.

This is what our transaction manager does for JDBC and JMS, through wrapper classes around XA-capable connectors.

AFAIK, for Jackrabbit we could only do this if:

1. Jackrabbit exposes a JDBC/XA API, or
2. We implement Jackrabbit wrapper connectors to do the XA, or
3. We implement JCA to use Jackrabbit as a JCA connector

AFAIK 1 is not the case, and neither 2 nor 3 are supported by our code.

So alas, the only thing that you can do is the manual XA enlists it seems. Then again, I could be wrong since my knowledge of Jackrabbit is really limited.

If there is sufficient demand then we could try to add code for option 2 (or 3), but this is a real lot of work and I doubt that we have time right now. So (again assuming sufficient demand), either we find contributors who want to do this, or somebody sponsors the development so we can take our team off of the (paid) projects they are working on, or a combination of both.

HTH
Guy Pardon Send private email
Friday, May 29, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics