H
Hussain
Hai
I am trying to do DRB program
but the server program throws an error like
"Error:TestServer.rb:10: uninitialized constant Drb (NameError)"
These are my program
require 'drb'
class TestServer
def doit
"Hello,Distributed World"
end
end
a=TestServer.new
DRb.start_service('druby://localhost:3000',a)
Drb.thread.join
__________________________________
require 'drb'
DRb.start_service()
obj=DRbObject.new(nil,'druby://localhost:3000')
p obj.doit
___________________________________
I dont know what is going wrong ,will anybody tell me the solution?
Ok
Bye
By
P.S.Hussain
I am trying to do DRB program
but the server program throws an error like
"Error:TestServer.rb:10: uninitialized constant Drb (NameError)"
These are my program
require 'drb'
class TestServer
def doit
"Hello,Distributed World"
end
end
a=TestServer.new
DRb.start_service('druby://localhost:3000',a)
Drb.thread.join
__________________________________
require 'drb'
DRb.start_service()
obj=DRbObject.new(nil,'druby://localhost:3000')
p obj.doit
___________________________________
I dont know what is going wrong ,will anybody tell me the solution?
Ok
Bye
By
P.S.Hussain