From: sunil unnava Date: Mon, 4 Feb 2019 22:55:00 +0000 (-0500) Subject: update the credentials in subscribe call X-Git-Tag: 1.1.1~4^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fmessagerouter%2Fmirroragent.git;a=commitdiff_plain;h=82136c1fd201cf815cdd85a0f02e8dd6316d6ec7;ds=sidebyside update the credentials in subscribe call Issue-ID: DMAAP-909 Change-Id: Ib27e6b3341376885a802e6702e64a5029da29356 Signed-off-by: sunil unnava --- diff --git a/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java index 304a067..61515bc 100644 --- a/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java @@ -139,7 +139,7 @@ public class MirrorMakerAgent { return false; } logger.info("Published to Topic :" + this.topicname + " Successfully"); - response = topicUtil.subscribeTopic(topicURL, topicname, "1", response, response); + response = topicUtil.subscribeTopic(topicURL, topicname, "1", mechid, password); if (response != null && response.startsWith("ERROR:")) { logger.error("Problem subscribing to topic, please verify the config " + this.topicname + " MR URL is:" + this.topicURL + " Error is: " + response);