Skip to content

Instantly share code, notes, and snippets.

@bobmcwhirter
Created February 9, 2010 04:27
Show Gist options
  • Save bobmcwhirter/298915 to your computer and use it in GitHub Desktop.
Save bobmcwhirter/298915 to your computer and use it in GitHub Desktop.
#!/usr/bin/env jruby
require 'torquebox/messaging/container'
container = TorqueBox::Messaging::Container.new {
agents {
map 'queues/foo', 'MyAgent'
}
}
container.create
container.start
container.wait_until( 'INT' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment