I think you are trying to do RMI callback, right (meaning server notifies all clients of DB changes)? If yes, the easiest way (according to my
Java book) is to create an observer interface that also extends from Remote, and have an implementation class that extends UnicastRemoteObject and implements that interface. Now you can pass this object to the database server.
In other words, this time round, both the client and server have a Remote interface for communication.
I've tried it, and it works perfectly.
Edit: I have tried not extending UnicastRemoteObject (if you do that, the Remote subinterface must also extend Serializable), and manually exporting the object using the exportObject() method. It actually works. If you want me to send you my sample codes, my pleasure.

[ February 16, 2005: Message edited by: Liang Anmian ]