Fix dblib DBResourceManager instantiation 27/10927/1
authorMarcus G K Williams <marcus.williams@intel.com>
Thu, 7 Sep 2017 20:26:31 +0000 (13:26 -0700)
committerMarcus G K Williams <marcus.williams@intel.com>
Thu, 7 Sep 2017 21:41:40 +0000 (14:41 -0700)
Fix APPC Build, failing upstream and locally due to
change in CCSDK that changes dblib to use service
injection via Aries Blueprint. The change causing
this in CCSDK is https://gerrit.onap.org/r/#/c/7931/

Issue-Id: APPC-196
Change-Id: I9bcfb6d87b7527fd07cb76a242b272a5bc0ad07c
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
appc-config/appc-config-generator/provider/src/main/java/org/openecomp/sdnc/config/generator/tool/DbServiceUtil.java
appc-config/appc-encryption-tool/provider/src/main/java/org/openecomp/appc/encryptiontool/wrapper/DbServiceUtil.java
appc-inbound/appc-design-services/provider/src/main/java/org/openecomp/appc/design/dbervices/DbService.java

index 5881e7f..c834081 100644 (file)
@@ -65,7 +65,7 @@ public class DbServiceUtil
         File file = new File("/opt/app/bvc/properties/dblib.properties");        
         URL propURL = file.toURI().toURL();    
         props.load(propURL.openStream());        
-        jdbcDataSource = DBResourceManager.create(props);
+        jdbcDataSource = new DBResourceManager(props);
         return jdbcDataSource;
         
     }
index 0174d47..1999793 100644 (file)
@@ -65,7 +65,7 @@ public class DbServiceUtil
         File file = new File("/opt/app/bvc/properties/dblib.properties");
         URL propURL = file.toURI().toURL();
         props.load(propURL.openStream());
-        jdbcDataSource = DBResourceManager.create(props);
+        jdbcDataSource = new DBResourceManager(props);
         return jdbcDataSource;
     }
 
index 46bb240..0220770 100644 (file)
@@ -93,7 +93,7 @@ public class DbService {
         }
         if (dblibSvc == null) {
             try {
-                dblibSvc = DBResourceManager.create(System.getProperties());
+                dblibSvc = new DBResourceManager(System.getProperties());
             } catch (Exception e) {
                 Log.error("Caught exception trying to create db service", e);
             }