Sun GlassFish Enterprise Server v3 Application Deployment Guide

idempotent-url-pattern

Specifies a URL pattern for idempotent requests.

Superelements

sun-web-app (sun-web.xml)

Subelements

none

Attributes

The following table describes attributes for the idempotent-url-pattern element.

Table C–63 idempotent-url-pattern Attributes

Attribute 

Default 

Description 

url-pattern

none 

Specifies a URL pattern, which can contain wildcards. The URL pattern must conform to the mappings specified in section SRV 11.2 of the Servlet 2.4 specification. 

no-of-retries

-1

(optional) Specifies the number of times the load balancer retries an idempotent request. A value of -1 indicates infinite retries.

Example

The following example specifies that all requests for the URI sun-java/* are idempotent.

<idempotent-url-pattern url-pattern="sun_java/*" no-of-retries="10"/>