Class FormsInstanceId

java.lang.Object
fr.paris.lutece.plugins.forms.service.FormsInstanceId

public final class FormsInstanceId extends Object
Runtime-unique identifier for THIS JVM. lutece.name identifies the site (product), not the node — it is identical on every instance of the same deployment, so it cannot be used to track who owns a distributed lock. We need a value that is unique across concurrent JVMs and changes on every restart, so the lock table can safely attribute rows to a single live JVM. Shape: hostname-pid (fallback unknown-<pid> if the hostname is not available). Stable across the lifetime of this JVM, different in any other JVM — including the same JVM restarted on the same host (PID changes). Recovery of locks left behind by a crashed JVM is NOT done by matching this ID on restart (a new JVM has a new ID); it relies on the TTL + heartbeat scheme in the lock DAO, which reclaims expired rows at acquire() time.
  • Field Details

    • VALUE

      public static final String VALUE