Here's an example for an oracle datasource. This code would be in the
onAfterInit event of the datasource.
try
{
addDBErrorRecoveryPlan (
new CSpDBErrorRecoveryPlan (
CSpDBErrorRecoveryPlan.IGNORE_ERROR,
3113, // Handles ORA-3113 error
0,
true,
CSpDBErrorRecoveryPlan.ALWAYS_RETRY, // Retry 3 times
3));
// Add other recovery plans if needed
}
catch (Exception ex)
{
CSpLog.send(this,CSpLog.ERROR,"Error adding RecPlan; error : " + ex);
}
Hope this helps
Fred
Yoichi Matsuura wrote:
> Hi,
>
> Does anyone know how to use CSpDBErrorRecoveryPlan?
> Especially, what kind of value should I set into
> errorCode and errorMessage? Please let me know
> which document I should refer.
>
> Thanks in advance,
>
> Yoichi
> -----------
> Yoichi Matsuura
> TERILOGY CO., LTD.
>
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
--
Fred Bruegmann
Lead Electronic Commerce Analyst
Whirlpool Corporation
Phone: (616) 923-3751
Fax: (616) 923-4667
Email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]