From: Eric Hodel Date: 2005-08-27T03:53:07+09:00 Subject: Re: DRb functions disappearing? On 26 Aug 2005, at 01:18, Kevin Brown wrote: > On Friday 26 August 2005 02:08, Eric Hodel wrote: > >> On 26 Aug 2005, at 00:32, Kevin Brown wrote: >> >>> And the client code is in a KDE app, so I won't bore you all with >>> the pile >>> there: >>> --START-- >>> require 'Korundum' >>> require 'drb' >>> require 'errors' >>> require 'login' >>> >> >> I don't see require 'db/db' here, so you'll need to add 'include >> DRbUndumped' to db/db if you don't want db/db to live here. > > If I don't want db/db to live here? It's a seperate process...? db/db may be a huge object that you wouldn't want sent across the wire, or its a lot of code that doesn't need to be loaded. > I'm totally lost as to A) Why that class would exist here, and B) > Why it existing here would cause DRb to not be able to call one of > my methods in the listener > class? A) DRb tries to marshal objects when communicating. If DRb can't marshal the object, it sends a DRbObject proxy instead. B) When DRb is trying to send marshaled objects back and forth, both sides need the class definition or the object needs to be undumpable. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04