Guest User

Untitled

a guest
May 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/usr/bin/env jruby
  2.  
  3. require 'rubygems'
  4. require 'torquebox-messaging-client'
  5.  
  6. TorqueBox::Messaging::Client.connect(:naming_provider_url => 'jnp://10.1.0.13:1099') do |client|
  7. msg = client.receive('/queues/boxgrinder/manage/node', :timeout => 0 )
  8. puts msg.get_string_property( msg.jmsreply_to )
  9. end
Add Comment
Please, Sign In to add comment