fabiokung / clustered-jruby
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
Readme.markdown | ||
| |
clustering_jruby.patch | ||
| |
examples/ | ||
| |
jmaglev/ | ||
| |
pom.xml | ||
| |
src/ |
Readme.markdown
Step-by-step to run the JMaglev demo
Pull from github:
git clone git://github.com/fabiokung/clustered-jruby.gitLong time waiting, because terracotta-2.7.1 (vanilla) and jruby-complete (patched) are bundled.
Change to the project directory:
cd clustered-jrubyBuild it:
(althoughmvn installmvn packageis enough)Change to the jmaglev demo directory:
cd jmaglevStart the terracotta server:
lib/terracotta-2.7.1/bin/start-tc-server.shOpen another two terminals
Run the simplified jirb inside them:
cd clustered-jruby/jmaglev ./bin/jmaglev jmaglev.rbFollow the demo. You will be able to share global variables among all jmaglevs:
require 'hat' $hat require 'rabbit' $hat.put(Rabbit.new)in the other terminal, try to see the magic hat contents:
$hat

