Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

C# .Net, locking and lease-granularity

695601Apr 30 2009 — edited May 4 2009
Hello,

I have a c# client proxying into a distributed cache. Following is the setup
- C# is a extend client getting access via tcp-ip proxy node
- the proxy-node has storage turned off, and has <lock-enabled>true</lock_enabled>.
- the cache nodes have <lease-granularity>thread</lease-granularity> (thats the default)

Im not able to get lock/unlock to work consistently via the c# client. In the above setup, the c# client is able to lock(key, -1) but then unlock() fails. The key remains locked indefinitely.

If i change the <lease-granularity>member</lease-granularity> on server nodes, then lock(key, -1) appears to succeed but then other c# client is able to lock(key, -1) as well while it has not been unlocked yet.

How can i make lock work for a bunch of c# clients? I understand that TransactionMap is not available, but is something as basic as lock() / unlock() not available as well?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2009
Added on Apr 30 2009
9 comments
1,898 views