Skip to content

Instantly share code, notes, and snippets.

@julianazanelatto
Created June 21, 2022 19:50
Show Gist options
  • Save julianazanelatto/a64bb2d0beaaf760a719e2f41cea6abb to your computer and use it in GitHub Desktop.
Save julianazanelatto/a64bb2d0beaaf760a719e2f41cea6abb to your computer and use it in GitHub Desktop.
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("172.24.0.2");
factory.setUsername("admin");
factory.setPassword("pass123");
factory.setPort(5672);
Connection connection = factory.newConnection();
Channel channel = connection.createChannel();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment