Skip to content

Instantly share code, notes, and snippets.

@jkutner
Created March 29, 2012 19:16
Show Gist options
  • Save jkutner/2242363 to your computer and use it in GitHub Desktop.
Save jkutner/2242363 to your computer and use it in GitHub Desktop.
TorqueBox Clustering
$ torquebox run --clustered
$ JBOSS_OPTS="-Djboss.node.name=node2 \
-Djboss.server.data.dir=/tmp/node2 \
-Djboss.socket.binding.port-offset=100" \
torquebox run --clustered
$ gem install torquebox-server -v 2.0.0.cr1
class MyJob
def run
puts "I'm a cod fish"
end
end
TorqueBox.configure do
job MyJob do
cron "0/1 * * * * ?"
singleton true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment