Update web.xml file to enable properties 11/41511/2
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 7 Apr 2018 10:34:48 +0000 (10:34 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Tue, 10 Apr 2018 04:41:01 +0000 (04:41 +0000)
Update web.xml to enable reacing properties from MSO-API-Prop.

Change-Id: I7dc1f48ff798c6f83e8976584edb5dfd9152f950
Issue-ID: SO-422
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/recipe/BpmnRestClient.java
bpmn/MSOInfrastructureBPMN/src/main/webapp/WEB-INF/web.xml

index e43af18..494ce69 100644 (file)
@@ -189,6 +189,7 @@ public class BpmnRestClient {
             recipeRequest.setServiceInstanceId(serviceInstanceIdInput);\r
             recipeRequest.setServiceType(serviceTypeInput);\r
             recipeRequest.setRecipeParams(recipeParamsInput);\r
+            recipeRequest.setResourceInput(resourceInput);\r
             jsonReq = recipeRequest.toString();\r
             msoLogger.debug("request body is " + jsonReq);\r
         } catch(Exception e) {\r
index 62a2748..cd68847 100644 (file)
     <param-name>resteasy.resources</param-name>\r
     <param-value>org.openecomp.mso.logger.MsoLoggingServlet,org.openecomp.mso.bpmn.core.HealthCheckHandler</param-value>\r
   </context-param>\r
+  <context-param>\r
+    <param-name>mso.configuration</param-name>\r
+    <param-value>MSO_PROP_APIHANDLER_INFRA=mso.apihandler-infra.properties</param-value>\r
+  </context-param>\r
   <listener>\r
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>\r
+    <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>\r
   </listener>\r
+\r
+  <context-param>\r
+    <param-name>resteasy.jndi.resources</param-name>\r
+    <param-value>java:module/MsoPropertiesFactory</param-value>\r
+  </context-param>\r
   <filter>\r
     <filter-name>LogFilter</filter-name>\r
     <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>\r