[Cps4] java transactions

Florent Guillaume fg at nuxeo.com
Tue Apr 4 14:42:19 CEST 2006


On 4 Apr 2006, at 02:34, Tiry wrote:
> From what I know ;
> The Transaction Manager is usally either a specific service of a
> application Server (WebLogic, WebSphere have an embeded one ...) or a
> stand alone service (like the olds Tuxedo / CICS, like JOTM in the  
> Java
> world or DTC in the MS world).

Yes.

> If you want to manage XA transactions from Zope, we will need to
> integrate an other component providing the XA manager.

Yes, and JOTM is an existing one designed to be embedded or used as  
standalone.

> Do you plan to include a XA manager in CPS4 architecture ?

Yes. But note that for us Zope is the application server, and should  
control the transactions. Also note that the 'transaction' package of  
ZODB that Zope uses already plays the role of a transaction manager  
in the Zope world (it has resources and two-phase commit between  
them). So it's not a big step, just that some resources will be  
delegated to a Java manager that will itself drive the java resources.

Florent

>
> Tiry
>
> Bogdan Stefanescu a écrit :
>
>> Here is a document that may help you:
>> http://jotm.objectweb.org/current/jotm/doc/howto-integrate-jotm.html
>> I will look in jackrabbit sources to see how it is using transaction
>> managers
>>
>> Bogdan
>>
>> Florent Guillaume wrote:
>>
>>
>>
>>> On 3 Apr 2006, at 14:49, Ruslan Spivak wrote:
>>>
>>>
>>>
>>>> On 3 Apr 2006, at 14:12, Florent Guillaume wrote:
>>>>
>>>>
>>>>
>>>>> Can any Java coder provide me with examples of how to register
>>>>> JackRabbit with a transaction manager like jotm.objectweb.org, and
>>>>> abort and commit a transaction?
>>>>> I'll be using this in Jython to prototype stuff.
>>>>>
>>>>>
>>>> And would be nice to know also Jackrabbit's own transaction  
>>>> status and
>>>> Jackrabbit transactions vs jackrabbit + jotm. I already read some
>>>> pieces
>>>> of information but the whole picture is not clear yet for me.
>>>>
>>>>
>>> From what I understand, in the Java world there are XA (distributed
>>> transaction) resources and XA managers. Many kind of libraries  
>>> are XA
>>> resources, including JackRabbit, which mean that they register
>>> themselves with a XA manager if one is present.
>>>
>>> Then all transaction begin/commit/abort goes through the manager,
>>> which itself redispatches it to all registered resources, and does
>>> commit using two-phase commit.
>>>
>>> What I don't know is how to instanciate a XA manager, and make sure
>>> JackRabbit uses it.
>>>
>>> Florent
>>>
>>>
>>>
>>
>>
>>
>>
>

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com





More information about the cps4 mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider

About

This page is a mailing archive for one of the Nuxeo projects.

Project News

[2008/11/18] Nuxeo 5.2.M3 and Nuxeo WebEngine 1.0.RC released![2008/11/13] First Nuxeo Developer Day (1st Dec. 2008) - Still a few seats available[2008/11/13] First Nuxeo Survey[2008/10/08] Nuxeo 5.1.6 Released

Corporate News

[2008/11/20] Nuxeo secures 2 million Euros and strengthens its board of directors and corporate governance[2008/11/17] Nuxeo joins OASIS[2008/10/23] IFRA Expo 2008 Amsterdam, October 27th to 30th, Booth 9363, Hall 9[2008/10/14] Nuxeo announces the appointment of Carina Rimoli as Indirect Sales Manager