Skip to content

Instantly share code, notes, and snippets.

@zhentao
Created August 30, 2013 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhentao/6395323 to your computer and use it in GitHub Desktop.
Save zhentao/6395323 to your computer and use it in GitHub Desktop.
public void sendMessage() {
Employee employee = new Employee();
employee.setId(counter.incrementAndGet());
employee.setName("name-" + employee.getId());
rabbitTemplate.convertAndSend(employee);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment