Leasing and Automatic Migration
WebLogic Server ensures that singleton services such as JMS services run only on a single server in a cluster any time by using the concept of leasing, which ensures that only one instance in the cluster owns a service. The key point about a lease is that the owner must periodically renew the lease. Failure to renew the lease allows someone else to “take it over.” When the original owner comes back on line, it will in turn try to “renew” the lease but will find that someone else now owns it. This is how leasing ensures that only one virtual machine (JVM) is running the service at a time.
There can only be a single lease owner for a resource, and the lease can fail over during a failure, ensuring that the pinned ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access