이 콘텐츠는 선택한 언어로 제공되지 않습니다.
23.4.3. The HASessionStateService configuration
The
HASessionStateService bean is defined in the <JBOSS_HOME>/server/<PROFILE>/deploy/cluster/ha-legacy-jboss-beans.xml file.
The configuration attributes in the
HASessionStateService bean are listed below.
- HAPartition is a required attribute to inject the HAPartition service that HA-JNDI uses for intra-cluster communication.
- jndiName is an optional attribute to specify the JNDI name under which this
HASessionStateServicebean is bound. The default value is/HAPartition/Default. - beanCleaningDelay is an optional attribute to specify the number of milliseconds after which the
HASessionStateServicecan clean a state that has not been modified. If a node, owning a bean, crashes, its brother node will take ownership of this bean. Nevertheless, the container cache of the brother node will not know about it (because it has never seen it before) and will never delete according to the cleaning settings of the bean. That is why theHASessionStateServiceneeds to do this cleanup sometimes. The default value is30*60*1000milliseconds (i.e., 30 minutes).