Use eclipselink.cache.coordination.remove-connection-on-error
to specify if the connection should be removed if TopLink encounters a communication error when coordinating the cache.
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. TopLink will reconnect when the server becomes available. |
|
Normally, this is used for RMI connections in the event that a server goes down.
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"/>
For more information, see:
"Cache Coordination" in Understanding Oracle TopLink
"Scaling TopLink Applications in Clusters" in Solutions Guide for Oracle TopLink