Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Using GigaSpaces from Ruby/JRuby

JRuby can be found at: http://jruby.sourceforge.net/

<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>

require 'java'

includeclass "com.jspaces.core.client.SpaceFinder"
includeclass "com.jspaces.examples.benchmark.Message"

#find space
space = SpaceFinder.find("/./ca")

#creates an Entry
m = Message.new
m.m_counter = 1

#writes Entry to space
space.write(m,nil, 10000)

#reads Entry from space
m = Message.new
result = space.read(m,nil,0)

print result

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2006-04-01 15:12:03 -0600

gbarnea gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Has anybody looked into a native Ruby wrapper yet? This might be a very good showcase for real cross-platform integration.

answered 2006-09-15 11:15:04 -0600

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2006-04-01 15:12:03 -0600

Seen: 29 times

Last updated: Sep 15 '06