Use eclipselink.cache.coordination.remove-connection-on-error
to specify if the connection should be removed if EclipseLink encounters a communication error when coordinating the cache.
Values
Table 5-13 describes this persistence property's values.
Table 5-13 Valid Values for cache.coordination.remove-connection-on-error
Value | Description |
---|---|
|
Remove the connection if a communication error occurs. EclipseLink will reconnect when the server becomes available. |
|
Usage
Normally, this is used for RMI connections in the event that a server goes down.
Examples
Example 5-8 shows how to use this property in the persistence.xml
file.
Example 5-8 Using cache.coordination.remove-connection-on-error in peristence.xml
<property name="eclipselink.cache.coordination.remove-connection-on-error" value="true"/>
See Also
For more information, see:
"Cache Coordination" in Understanding EclipseLink
"Scaling EclipseLink Applications in Clusters" in Solutions Guide for EclispeLink