Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Reliable Messaging With Ruby and DRb

Reply
Thread Tools

Reliable Messaging With Ruby and DRb

 
 
mplee168@gmail.com
Guest
Posts: n/a
 
      07-09-2007
Hello,

My local IP address is 10.8.8.41. I could not figure out why when I
use 127.0.0.1 the code works but fails when I use my IP address. The
error is "druby://10.8.8.41:6438 - #<Errno::EBADF: Bad file descriptor
- connect(2)"


require 'rubygems'
require 'reliable-msg'

manager = ReliableMsg::QueueManager.new
manager.start

queue = ReliableMsg::Queue.new 'my-queue', :drb_uri => 'druby://
127.0.0.1:6438'
#queue = ReliableMsg::Queue.new 'my-queue', :drb_uri => 'druby://
10.8.8.41:6438'
queue.put "This is a test object"

msg = queue.get
p msg

manager.stop



Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Soap 1.1 and Reliable Messaging Rick ASP .Net Web Services 0 12-14-2009 07:45 PM
DRb connection error with more than 250+ DRb services J. Wook Ruby 16 05-16-2007 11:32 AM
More DRb; SSL & DRB & errors Kirk Haines Ruby 0 07-01-2005 06:29 PM
Upgrade path for MCSA:2000 Messaging to MCSA:2003 Messaging D. Young MCSA 2 04-05-2005 08:19 AM
DRb / dRuby - freezes on DRb::DRbUndumped - any ideas? Miles Keaton Ruby 3 03-30-2005 03:37 PM



Advertisments