On Jun 1, 2006, at 12:17 AM, Vinay Kumar Jaasti wrote: > 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 <logancapaldo / gmail.com> 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? >> >> >> > Could this just be a typo in your code? a is subscribing to prof2 but then tries to call method1 (which is published under prof) > > -- > ----vinay