Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

JiniTxManager vs DistributedTxManager

Hi, I'd just like to clarify some things regarding Transaction Managers. In our solution we have one "space" PU which just configures and deploys the space, we have other "worker" PUs which are deployed afterwards which actually use the space.

Would it be preferable to have one TransactionManager created by the Space PU and then looked up by the worker PUs? Or would it be a better solution for each worker PU to create its own TransactionManager?

When deploying the Space PU I can start a DistributedTransactionManager by using:

<os-core:distributed-tx-manager id="txManager" />

Can this then be looked up by other PUs using the following?

<os-core:jini-tx-manager id="txManager" tx-manager-name="???" />

I note that the DistributedTransactionManager XSD says "This transaction manager is not registered for lookup". How do I create a TransactionManager that can be looked up?

asked 2015-07-16 07:58:41 -0500

jmg gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted


There is no absolute answer to this question. Most of the customers create Transaction Manager on each client. When doing so they make sure all transaction ended before closing the client. This way you would save the remote call. Using Jini Transaction Manager (remote transaction manager) is less common but possible. There are cases when clients are closed and leave non ended transactions. This cause problems. In this case remote tx is preferred. It will always live on the server side and serve many clients.


answered 2015-07-16 09:03:01 -0500

Yuval gravatar image
edit flag offensive delete link more


Great, thanks. How do I create and register a remote TxManager for lookup?

jmg gravatar image jmg  ( 2015-07-16 09:07:52 -0500 )edit
Yuval gravatar image Yuval  ( 2015-07-16 09:22:38 -0500 )edit

So does "<os-core:jini-tx-manager id="transactionManager"/>" start a manager if it is unable to find one with the same id?

jmg gravatar image jmg  ( 2015-07-16 09:26:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-07-16 07:58:41 -0500

Seen: 222 times

Last updated: Jul 16 '15