cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco JTA Connector

mindthegab
Champ in-the-making
Champ in-the-making
Hi all,
I had the requirements of embedding webservice client calls to an Alfresco server in a JTA transaction environment.
This means that I have to wrap the webservice client into an XA Resource based adapter (I'd say a JCA connector), which basically ensures that the remote alfesco instance is treated as a transactional resource manager.

Wanted to know if someone has already to face the (quite common in enterprise integration) problem and if the JCA/JTA approach has already been defined.
What is more, does it make sense to add it to forge.alfresco.com ?

Thx!

Ciao,
Gab
2 REPLIES 2

andre
Champ in-the-making
Champ in-the-making
Hi,

I'm trying something else with JTA:

Inclusion of the alfresco jars into an ear-package -
Then - instead of using the webservices - I use the foundation api directly within my own spring services. These service are wrapped by ejb session beans to expose the functionality to other enterpise applications within global transactions.

For this you have switch alfresco's application context to the JtaTransactionManager and do a few minor tweaks.

@ALFRESCO TEAM
Alfresco 2.1 (HEAD-Revision) does not work anymore with the JtaTransactionManager
Cerating a node throws the following exception: "Non-root node has no primary parent"

Is anyone else interested in using Alfresco with JtaTransactionManager?

mindthegab
Champ in-the-making
Champ in-the-making
I think that best option would be anyways to use the JCR-RMI interface (http://forge.alfresco.com/projects/jcr-rmi/) , documented in alfresco wiki here:

http://wiki.alfresco.com/wiki/JCR-RMI_Extension

I'm still in investigation phase but some things are sure:

1. JCR-RMI is still buggy (refer to http://issues.alfresco.com/browse/AR-706)
2. JCR-RMI leverages on JackRabbit to export Alfresco JCR repository via RMI
3. JackRabbit support JCA 1.0 (http://jackrabbit.apache.org/doc/components/jca.html)

So I hope that we can see the light sometimes soon (I also joined the JCR-RMI project to support them)

In addition to that there are people claiming to be using it (one year/one version ago) with some bugs (but still using it…) :

http://forums.alfresco.com/viewtopic.php?t=767

I still don't have a clear view, guess I'll have to dig a little bit more into code of the adapter, Jackrabbit and Alfresco JCR layer.

Stay tuned!