Commit 238336c0 authored by afreyssin's avatar afreyssin

Allows to configure the queue's name.

parent d3dc2548
......@@ -10,7 +10,9 @@ import com.google.gson.GsonBuilder;
public class Consumer {
public static void main(String[] args) {
RestConsumer cons = new RestConsumer("http://localhost:8989/joram/", "queue");
String queueName = System.getProperty("queue");
RestConsumer cons = new RestConsumer("http://localhost:8989/joram/", queueName);
// cons.debug = true;
testJSonMessage(cons);
// testStringMessage(cons);
......
......@@ -5,7 +5,9 @@ import java.util.HashMap;
public class Producer {
public static void main(String[] args) {
RestProducer prod = new RestProducer("http://localhost:8989/joram/", "queue");
String queueName = System.getProperty("queue");
RestProducer prod = new RestProducer("http://localhost:8989/joram/", queueName);
// prod.debug = true;
testJSonMessage(prod);
// testStringMessage(prod);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment