TOC PREV NEXT INDEX



PDF
ICEfaces Online Reference




 


 




Asynchronous Heartbeating


At the core of EE connection management is a configurable connection heartbeat mechanism. Heartbeating improves the long-term health of the connection by keeping it active, and closely monitors the connection status based on heartbeat responses. Heartbeating is configured in the application web.xml file using the context parameters in the code examples below.

The following code example defines the time in milliseconds between heartbeat messages. The default value is 20000 (20 seconds).

<context-param>
 
		<param-name>com.icesoft.faces.heartbeatInterval</param-name>
 
		<param-value>20000</param-value>
 
</context-param>
 

The following code example defines how long, in milliseconds, that heartbeat monitor will wait for a response prior to timing out. The default value is 3000 (3 second).

<context-param>
 
		<param-name>com.icesoft.faces.heartbeatTimeout</param-name>
 
		<param-value>3000</param-value>
 
</context-param>
 

The following code example defines the number of timeout/retries allowed before the connection is considered failed. The default value is 3.

<context-param>
 
		<param-name>com.icesoft.faces.heartbeatRetries</param-name>
 
		<param-value>3</param-value>
 
</context-param>
 


Copyright 2005-2006. ICEsoft Technologies, Inc.
http://www.icesoft.com

TOC PREV NEXT INDEX