Skip to content

Instantly share code, notes, and snippets.

@bbrowning
Forked from goldmann/gist:843793
Created February 25, 2011 13:48
Show Gist options
  • Save bbrowning/843801 to your computer and use it in GitHub Desktop.
Save bbrowning/843801 to your computer and use it in GitHub Desktop.
class NodeHandler
def process!(message)
payload = message.decode[:message]
puts payload.to_yaml
queue = TorqueBox::Messaging::Queue.new("/queues/node")
queue.publish('OK', :correlation_id => message.jmsmessage_id)
end
end
messaging:
/queues/node:
NodeHandler:
filter: "synchronous = 'true'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment