com.sun.xml.ws.api.ha
Interface StickyFeature

All Known Implementing Classes:
StatefulFeature

public interface StickyFeature

Provides a way to tell the runtime about stickiness of requests. In a HA environment, a client's requests need to land on the same instance so that a BackingStore entry for a key is accessed/modified from the same instance.

A web service feature may implement this interface. JAX-WS runtime checks if any feature needs stickiness of requests, and if HA is configured (HighAvailabilityProvider.isHaEnvironmentConfigured()), it will take an appropriate action. For example, in servlet transport, it would create JSESSIONID cookie so that a typical loadbalancer would stick the subsequent client requests to the same instance.

Since:
JAX-WS RI 2.2.2



Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.