fabiokung / clustered-jruby
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
63b52b1
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Nov 22 13:30:16 -0800 2008 | |
| |
Readme.markdown | Sat Nov 22 13:18:22 -0800 2008 | |
| |
clustering_jruby.patch | Sat Nov 22 11:53:00 -0800 2008 | |
| |
examples/ | Sat Nov 22 11:21:54 -0800 2008 | |
| |
jmaglev/ | Sat Nov 22 11:21:54 -0800 2008 | |
| |
pom.xml | Sat Nov 22 11:21:54 -0800 2008 | |
| |
src/ | Sat Nov 22 11:21:54 -0800 2008 |
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
