Skip to content

Instantly share code, notes, and snippets.

@nitindhar7
Created May 31, 2012 02:38
Show Gist options
  • Save nitindhar7/2840599 to your computer and use it in GitHub Desktop.
Save nitindhar7/2840599 to your computer and use it in GitHub Desktop.
Publishing a message to RabbitMQ
String message = "Hello World!";
channel.basicPublish("users", "registered-users", null, message.getBytes());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment