Stateful junction example

In the following example,
  • WebSEAL-1 instance is called WS1. Host name is host1.
  • WebSEAL-2 instance is called WS2. Host name is host2.
  • Back-end server 1 is called APP1
  • Back-end server 2 is called APP2
pdadmin> server task WS1-webseald-host1 create -t tcp -h APP1 -s /mnt
pdadmin> server task WS1-webseald-host1 add -h APP2 /mnt
pdadmin> server task WS1-webseald-host1 show /mnt

(output of this command reveals UUID1 and UUID2)
pdadmin> server task WS2-webseald-host2 create -t tcp -h APP1 -u UUID1 -s /mnt
pdadmin> server task WS2-webseald-host2 add -h APP2 -u UUID2 /mnt

When a client establishes a stateful connection with back-end server 2, it receives a cookie containing UUID2. This example now ensures that the client will always connect to back-end server 2, regardless of whether future requests are routed through WebSEAL-1 or WebSEAL-2.