Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
<Resource id="..." type="DataSource"> ResetOnError = true ResetOnErrorMethods = * </Resource>
Defaults are:
- ResetOnError = false
- ResetOnErrorMethods = getConnection,getXAConnection
Advanced Configuration:
- ResetOnErrorMethods supports wildcard but not regex (ie * means all methods and that is it).
- ResetOnError can take a boolean (on/off behavior) as value or a string. In this last case behavior is the following: if "retry(N)" with N a number it retried N times before throwing an exception, if "N" with N a number it is as if it is "rerty(N)", if a fully qualified name of org.apache.openejb.resource.jdbc.ResettableDataSourceHandler$RetryStrategy it is instantiated passing as constructor parameter a Runnable (task flushing the delegate datasource) and the value itself (which can contain some inline config). If not any of these cases it fails.