Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void initPluginStep() throws Exception
// use meta.getFields() to change it, so it reflects the output row structure
meta.getFields(rowMeta, getStepname(), null, null, this, repository, metaStore);

Integer port = null;
int port = 0;
String body = environmentSubstitute(meta.getBodyField());
String routing = environmentSubstitute(meta.getRouting());
String uri = environmentSubstitute(meta.getUri());
Expand All @@ -157,7 +157,7 @@ private void initPluginStep() throws Exception
throw new AMQPException("Unable to retrieve field : " + meta.getBodyField());
}

if ((username == null || password == null || host == null || port == null) && (uri == null)) {
if ((username == null || password == null || host == null || port == 0) && (uri == null)) {
throw new AMQPException("Unable to retrieve connection information");
}

Expand Down Expand Up @@ -216,8 +216,8 @@ private void initPluginStep() throws Exception
throw new AMQPException("Unable to retrieve body field : " + body);
}

if (data.target == null) {
throw new AMQPException("Unable to retrieve queue/exchange name");
if (data.isConsumer && data.target == null) {
throw new AMQPException("Unable to retrieve queue name");
}

logMinimal(getString("AmqpPlugin.Body.Label") + " : " + body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ private void ok()
return;
}

if (Const.isEmpty(input.getTarget())) {
if (input.isConsumer() && Const.isEmpty(input.getTarget())) {
textTarget.setFocus();
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ public String getTarget()
}

if (Const.isEmpty(target) && AMQPPluginData.MODE_PRODUCER.equals(mode)) {
target = "exchange_name";
target = "";
}

return target;
Expand Down