Hi Paul,
thank you very much for your reply.
During my research, I have read through complete infinispan-clustered-lock implementation so I am aware of the Lock usage and of the InfinispanLockServlet class.
I have read my initial post once again and came to conclusion that my problem is possibly not presented specific enough, apologies for that.
In my initial post, I pasted an example of all elements supported by namespace "urn:infinispan:config:clustered-locks:14.0" and I see how <clustered-lock> elements might suggest that I am looking for a way for declarative creation of named locks but I actually require declarative configuration of <reliability> property which is positioned just above <clustered-lock> element.
Using the class you linked as an example, cm is already fully started during invocation of EmbeddedClusteredLockManagerFactory.from(cm), including all internal caches and I am unaware of a way that allows changing reliability property once cm is started.
@Resource(lookup = "java:jboss/infinispan/container/lock")
private EmbeddedCacheManager cm;
@Override
public void init() throws ServletException {
clm = EmbeddedClusteredLockManagerFactory.from(cm);
}