Configuring a locking strategy

You can define an optimistic, a pessimistic, or no locking strategy on each BackingMap in the WebSphere® eXtreme Scale configuration.

About this task

You can specify a locking strategy programmatically or with XML. For more information about locking, see Locking strategies.

Procedure

What to do next

To avoid a java.lang.IllegalStateException exception, you must call the setLockStrategy method before calling the initialize or getSession methods on the ObjectGrid instance.