update rmq
This commit is contained in:
@@ -11,7 +11,7 @@ public class Recv {
|
||||
|
||||
public static void main(String[] argv) throws Exception {
|
||||
ConnectionFactory factory = new ConnectionFactory();
|
||||
factory.setHost("localhost");
|
||||
factory.setUri("amqp://admin:admin@localhost:8088/ipr");
|
||||
Connection connection = factory.newConnection();
|
||||
Channel channel = connection.createChannel();
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ public class Send {
|
||||
|
||||
public static void main(String[] argv) throws Exception {
|
||||
ConnectionFactory factory = new ConnectionFactory();
|
||||
factory.setHost("localhost");
|
||||
factory.setUri("amqp://admin:admin@localhost:8088/ipr");
|
||||
try (Connection connection = factory.newConnection();
|
||||
Channel channel = connection.createChannel()) {
|
||||
channel.queueDeclare(QUEUE_NAME, false, false, false, null);
|
||||
|
||||
Reference in New Issue
Block a user