[jbdevstudio-users] Infinispan example code for entry based locking

Karminder Singh jbdevstudio-users at lists.jboss.org
Thu Jul 10 04:46:46 EDT 2014


Hi,
I am new to infinispan. I am trying to use infinispan database with multiple writers and readers. I need help on the following:
1. Sample code that shows how to acquire locks on records in distributed mode. Also, how can this be done in replicated mode.
2. If I make the infinispan cache persistent, will it be OK to use locking then also. What are the things I should keep in mind.
3. Is there a way I can lock the whole infinispan cluster distributed across different nodes. The idea behind this is, I would like to acquire a set of records before performing operation and I want to ensure that only one process acquires all these locks.

I could not find example codes, and descriptions for all the APIs. Please help if they are available.
Thanks,
Karm

Posted by forums
Original post: https://community.jboss.org/message/880856#880856


More information about the jbdevstudio-users mailing list