Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
238336c0
Commit
238336c0
authored
Jul 27, 2017
by
afreyssin
Browse files
Allows to configure the queue's name.
parent
d3dc2548
Changes
2
Hide whitespace changes
Inline
Side-by-side
joram/samples/src/joram/rest/Consumer.java
View file @
238336c0
...
...
@@ -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);
...
...
joram/samples/src/joram/rest/Producer.java
View file @
238336c0
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment