Nischal is right... also, your Dodad reference doesn't have to be Serializable or Remote either. Your client gets a stub to whatever Remote object has remoteMethod(). When remoteMethod() on the stub is called, the stub calls the *real* remoteMethod() on your Remote class running on the server. Objects that are reference *inside* remoteMethod() don't have to be Serializable or Remote... only objects that are sent *into* the method as parameters, or that are sent *out of* the method as return values.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad: