From: Vinay Kumar Jaasti Date: 2006-06-01T13:17:27+09:00 Subject: Re: Pub/Sub in Distributed setup ------=_Part_23897_4917557.1149135443761 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline class Abc < Object def method1 puts "in Method 1" end def method2 puts "in method 2" end publish :prof, :method1 publish :prof2, :method2 end where Object is implemented as in RCR198. and I bounded object to drb as require 'drb' require 'PubSubServer' server = Abc.new DRb.start_service('druby://localhost:9000', server) DRb.thread.join Now, the client(code given below) is not able to fiqure out what proxy is.How can i resolve this? thanks --vinay On 5/31/06, Logan Capaldo wrote: > > > On May 31, 2006, at 6:17 AM, Vinay Kumar Jaasti wrote: > > > Hi, > > I want to implement RCR 198 in distributed environment.I wrote > > subscriber as > > follows > > > > require 'drb' > > DRb.start_service() > > a = DRbObject.new(nil,'druby://localhost:9000') > > a.subscribe(:prof2 ) do |proxy| > > proxy.method1 #this is a private method accessed thru proxy > > end > > > > But it is giving me unknown method error...please help > > > > > > > > thanks > > ----vinay > > Where's the other half of your code? What does the object that you > are connecting to look like? > > > -- ----vinay ------=_Part_23897_4917557.1149135443761--