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

Ask Your Question

Question on Transaction Manager


We are building Rest Web Service to access a partitioned data grid using Gigaspaces library(Not openspaces). The grid is partitioned using customerID. Could you please recommend if we should be using LocalTransactionManager.getInstance((IJSpace) Space) or Jini Distributed Transaction Manager during Write, take, update operation?

Thanks, Supreeth

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=1913]{quote}

asked 2008-04-20 22:22:49 -0500

supreeth gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

If your transaction may span multiple partitions - i.e. involves data for multiple customers you will need to use the Jini Distributed transaction manager.
If your transaction involves operations for the same customer - Local transaction manager will do the job.


answered 2008-04-20 22:27:13 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Thanks for the quick reply.

When we perform write /update we will always be going to a partition(based on routingID which is set to be customerID) and updating one or multiple objects related to that customer at any given time. Just to clarify once again, can we go with LocalTransactionManger as this partition is being accessed from a remote web server using IJSpace?


supreeth gravatar imagesupreeth ( 2008-04-20 22:33:22 -0500 )edit

You can go with LocalTransactionManger. If all transaction operations will be handling objects with the same customerID , local transaction manager should be used.


shay hassidim gravatar imageshay hassidim ( 2008-04-20 22:40:25 -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: 2008-04-20 22:22:49 -0500

Seen: 87 times

Last updated: Apr 20 '08