[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

DRB Program Error

Mohamed Hussain

5/4/2007 4:29:00 AM

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

--
Posted via http://www.ruby-....

2 Answers

gmurray

5/4/2007 5:31:00 AM

0


Hussain wrote:
> "Error:TestServer.rb:10: uninitialized constant Drb (NameError)"

^^^
> Drb.thread.join
^^^
DRb

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

Never to make typo errors?
Best regards,
Gerald

Joel VanderWerf

5/4/2007 5:31:00 AM

0

Hussain wrote:
> 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).

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407