Hi Derik,
There are a lot of threads already on this subject. One idea seems to be creating a new interface, with exactly matches the methods in DBMain interface provided by Sun, and changing the method signatures to throw IO/Remote Exception. have a look here -
here