Handling DB failures while using JDBC adapter!

Hi
I am using JDBC adapter to access an Oracle Database.
I need to handle scenarios when the database is down.Typically I would want to send out emails to system administrators to take appropriate action.
To simulate the scenario mentioned above, I brought down my DB and tried to invoke a batch insert service.Below is the error which I get while doing the same:

java.lang.reflect.InvocationTargetException: com/wm/adk/error/AdapterConnectionException
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:340)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:587)
… 50 more
at com.wm.util.pool.PooledThread.run(PooledThread.java:105)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:287)
… 50 more
Caused by: java.lang.NoClassDefFoundError: com/wm/adk/error/AdapterConnectionException
at RouterOperations.AssignSequenceNumber(RouterOperations.java:180)
… 55 more

I understand that the JDBC adapter throws AdapterConnectionException in case it is not able to connect to DB.So I should explicitly handle this exception and do whatever business processing I need to.
The problem starts when I try to do that.The AdapterConnectionException is present in wmart.jar which is not deployed in my server.When I deployed this jar in my server,all my adpaters start failing with the following error:

java.lang.NoClassDefFoundError: com/wm/pkg/art/data/IDataExt
at com.wm.adk.error.AdapterServiceException.init(AdapterServiceException.java:283)
at com.wm.adk.error.AdapterServiceException.(AdapterServiceException.java:237)
…10 more
java.lang.NoClassDefFoundError: com/wm/pkg/art/log/ARTJLog
at com.wm.adk.WmAdapter.(WmAdapter.java:54)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:128)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:100)
at com.wm.app.b2b.server.SessionInvoke.run(Session.java:705)
at com.wm.util.pool.PooledThread.run(PooledThread.java:105)
at java.lang.Thread.run(Thread.java:534)

I am not able to understand the cause for above error.
Any help is highly appreciated.
Thanks
Rajneesh

We have taken a little different approach. I schedule a service to run every 10 minutes to check adapter connections. If an adapter is down, I send out an email.

Thanks,
Steve