Force Sticky session on HaProxy

Hi,

Is anybody configured Force Sticky session in Haproxy (with JSESSIONID).

I am using following things
Centos 6.4
Apache 2.2
Jboss 4.0
ModJK
and HaProxy 1.6.12

also check following setting in ModJK config but not succeed.

cookie serverid insert indirect nocache
stick-table type string len 36 size 1m expire 8h
stick on cookie(JSESSIONID)

I want to configure this on HaProxy level.
If my one web-server goes down then client should not get disconnect , should wait for the web-server get up.
If server get up withing time then client start communicating.

Use “option persist”:

https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#option%20persist

Its not working

check my haproxy config.