static final Logger logger = Logger.getLogger(MirrorMakerAgent.class);
Properties mirrorMakerProperties = new Properties();
ListMirrorMaker mirrorMakers = null;
- String mmagenthome = "";
+ String mmagenthome = "/opt";
String kafkahome = "";
String topicURL = "";
String topicname = "";
private boolean checkStartup() {
FileInputStream input = null;
try {
- this.mmagenthome = System.getProperty("MMAGENTHOME");
+ //this.mmagenthome = System.getProperty("MMAGENTHOME");
input = new FileInputStream(mmagenthome + "/etc/mmagent.config");
logger.info("mmagenthome is set :" + mmagenthome + " loading properties at /etc/mmagent.config");
} catch (IOException ex) {
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);