Project

General

Profile

Bug #13127 ยป drb_server_test.rb

DRb server code - mkanoor@redhat.com (Madhu Kanoor), 01/13/2017 06:01 PM

 
1
require 'drb/drb'
2
class TestObject
3
  #include DRb::DRbUndumped
4
  attr_accessor :name
5
  def initialize(str)
6
    @name = str
7
  end
8
end
9

    
10
my_array = (1..100).collect do |item|
11
  TestObject.new("#{item}_object")
12
end
13

    
14
DRb.start_service('druby://localhost:9999', my_array)
15
DRb.thread.join