ソースを参照

Added app.properties outside the jar package to be able to set wsdl url after mvn assembly:assembly

jorgen_falk 18 年 前
コミット
e7de933664
共有3 個のファイルを変更した11 個の追加3 個の削除を含む
  1. 1
    0
      register-app/app.properties
  2. 9
    2
      register-app/src/main/resources/context-app.xml
  3. 1
    1
      register-app/startApp.sh

+ 1
- 0
register-app/app.properties ファイルの表示

1
+wsdl.url=http://localhost:8080/dddsample/ws/RegisterEvent?wsdl

+ 9
- 2
register-app/src/main/resources/context-app.xml ファイルの表示

5
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
        xsi:schemaLocation="
6
        xsi:schemaLocation="
7
         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
8
-        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
8
+        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
9
+       xmlns:context="http://www.springframework.org/schema/context">
10
+
11
+  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
12
+    <property name="locations">
13
+      <value>classpath:app.properties</value>
14
+    </property>
15
+  </bean>
9
 
16
 
10
   <bean id="registerApp" class="se.citerus.registerapp.RegisterApp">
17
   <bean id="registerApp" class="se.citerus.registerapp.RegisterApp">
11
     <property name="handlingEventService" ref="handlingEventServiceWs"/>
18
     <property name="handlingEventService" ref="handlingEventServiceWs"/>
18
 
25
 
19
   <bean id="handlingEventWebServiceEndPoint" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
26
   <bean id="handlingEventWebServiceEndPoint" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
20
     <property name="serviceInterface" value="se.citerus.dddsample.ws.HandlingEventServiceEndpoint" />
27
     <property name="serviceInterface" value="se.citerus.dddsample.ws.HandlingEventServiceEndpoint" />
21
-    <property name="wsdlDocumentUrl" value="http://localhost:8080/dddsample/ws/RegisterEvent?wsdl" />
28
+    <property name="wsdlDocumentUrl" value="${wsdl.url}" />
22
     <property name="namespaceUri" value="http://ws.dddsample.citerus.se/" />
29
     <property name="namespaceUri" value="http://ws.dddsample.citerus.se/" />
23
     <property name="serviceName" value="HandlingEventServiceEndpointImplService" />
30
     <property name="serviceName" value="HandlingEventServiceEndpointImplService" />
24
     <property name="portName" value="HandlingEventServiceEndpointImplPort" />
31
     <property name="portName" value="HandlingEventServiceEndpointImplPort" />

+ 1
- 1
register-app/startApp.sh ファイルの表示

1
 #!/bin/sh
1
 #!/bin/sh
2
-java -cp target/register-app-1.0-SNAPSHOT-jar-with-dependencies.jar se.citerus.App
2
+java -classpath .:target/register-app-1.0-SNAPSHOT-jar-with-dependencies.jar se.citerus.App