DRB Program Error

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
 
G

Gerald Murray

Hussain said:
"Error:TestServer.rb:10: uninitialized constant Drb (NameError)"
^^^
^^^
DRb

I dont know what is going wrong ,will anybody tell me the solution?

Never to make typo errors?
Best regards,
Gerald
 
J

Joel VanderWerf

Hussain said:
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
^^^
DRb

It's just a typo (and probably one many of us have made).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top