Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.26 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #start this first
  2. require 'rinda/ring'
  3. require 'rinda/tuplespace'
  4.  
  5. DRb.start_service
  6.  
  7. # Create a TupleSpace to hold named services, and start running
  8. Rinda::RingServer.new Rinda::TupleSpace.new
  9.  
  10. # Wait until the user explicitly kills the server.
  11. DRb.thread.join
clone this paste RAW Paste Data