I use adapter
pattern for my server-side implementation, but I'm still having problem with my client-side. The big problem is that since my DataClient supports both local and RMI mode, because of this, all my methods on DataClient throws RemoteException. I tried to use adapter pattern as suggested, but I just can't figure it out how to apply it, so my methods don't have to throw RemoteException in local mode.
Any help is appreciated!!!