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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top