Refactor Prov DB handling
[dmaap/datarouter.git] / datarouter-prov / src / main / java / org / onap / dmaap / datarouter / provisioning / utils / DRRouteCLI.java
index f078d80..187364f 100644 (file)
@@ -53,6 +53,7 @@ import org.apache.http.util.EntityUtils;
 import org.json.JSONArray;\r
 import org.json.JSONObject;\r
 import org.json.JSONTokener;\r
+import org.onap.dmaap.datarouter.provisioning.ProvRunner;\r
 \r
 /**\r
  * This class provides a Command Line Interface for the routing tables in the DR Release 2.0 DB.\r
@@ -117,7 +118,7 @@ public class DRRouteCLI {
         this.server = server;\r
         this.httpclient = new DefaultHttpClient();\r
 \r
-        Properties provProperties = (new DB()).getProperties();\r
+        Properties provProperties = ProvRunner.getProvProperties();\r
         try {\r
             AafPropsUtils.init(new File(provProperties.getProperty(\r
                 "org.onap.dmaap.datarouter.provserver.aafprops.path",\r