Guest User

Untitled

a guest
Jan 26th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns:context="http://www.springframework.org/schema/context"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:jaxws="http://cxf.apache.org/jaxws"
  5. xmlns="http://www.springframework.org/schema/beans"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  7. http://www.springframework.org/schema/context
  8. http://www.springframework.org/schema/context/spring-context-4.0.xsd">
  9.  
  10. <!--Enables @Autowired annotation-->
  11. <context:annotation-config/>
  12.  
  13. <!-- Property configurator -->
  14. <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  15. <property name="locations">
  16. <list>
  17. <value>classpath:appcfg/cpas-login-hook/application.properties</value>
  18. <value>classpath*:appcfg/cpas-login-hook/application-custom.properties</value>
  19. </list>
  20. </property>
  21. </bean>
  22.  
  23. <!--<bean id="scaWS" class="eu.ibacz.cepo.core.wsclient.springframework.remoting.jaxws.JaxWsThreadSafePortProxyFactoryBean">-->
  24. <!--<property name="serviceInterface" value="cz.cpoj.jip.xsd.sca.sca.ScaWS"/>-->
  25. <!--<property name="wsdlDocumentUrl" value="classpath:wsdl/ScaWS.wsdl"/>-->
  26. <!--<property name="namespaceUri" value="http://www.cpoj.cz/jip/xsd/sca/sca"/>-->
  27. <!--<property name="serviceName" value="ScaWS"/>-->
  28. <!--<property name="endpointAddress" value="${sca.ws.endpoint.address}"/>-->
  29. <!--<property name="username" value="${sca.ws.username}"/>-->
  30. <!--<property name="password" value="${sca.ws.password}"/>-->
  31. <!--<property name="customProperties">-->
  32. <!--<map>-->
  33. <!--&lt;!&ndash;Timeouty - opakovany pro kazdou potencionalni implementaci JAX-WS&ndash;&gt;-->
  34. <!--<entry key="com.sun.xml.ws.request.timeout">-->
  35. <!--<value type="java.lang.Integer">${detail.ws.request.timeout}</value>-->
  36. <!--</entry>-->
  37. <!--<entry key="com.sun.xml.ws.connect.timeout">-->
  38. <!--<value type="java.lang.Integer">${detail.ws.connect.timeout}</value>-->
  39. <!--</entry>-->
  40. <!--<entry key="com.sun.xml.internal.ws.request.timeout">-->
  41. <!--<value type="java.lang.Integer">${detail.ws.request.timeout}</value>-->
  42. <!--</entry>-->
  43. <!--<entry key="com.sun.xml.internal.ws.connect.timeout">-->
  44. <!--<value type="java.lang.Integer">${detail.ws.connect.timeout}</value>-->
  45. <!--</entry>-->
  46. <!--&lt;!&ndash;Pro JBoss je jen jedno nastaveni (vice viz http://community.jboss.org/message/340300)&ndash;&gt;-->
  47. <!--<entry key="org.jboss.ws.timeout">-->
  48. <!--<value type="java.lang.Integer">${detail.ws.request.timeout}</value>-->
  49. <!--</entry>-->
  50. <!--&lt;!&ndash;/Timeouty&ndash;&gt;-->
  51. <!--</map>-->
  52. <!--</property>-->
  53. <!--<property name="threadPoolSafe" value="true"/>-->
  54. <!--</bean>-->
  55.  
  56. <jaxws:client id="scaWSClient"
  57. serviceClass="cz.cpoj.jip.xsd.sca.sca.ScaWS"
  58. wsdlLocation="classpath:wsdl/ScaWS.wsdl"
  59. serviceName="ScaWS"
  60. address="${sca.ws.endpoint.address}"
  61. username="${sca.ws.username}"
  62. password="${sca.ws.password}">
  63. <jaxws:properties>
  64. <!--Timeouty - opakovany pro kazdou potencionalni implementaci JAX-WS-->
  65. <entry key="com.sun.xml.ws.request.timeout">
  66. <value type="java.lang.Integer">${detail.ws.request.timeout}</value>
  67. </entry>
  68. <entry key="com.sun.xml.ws.connect.timeout">
  69. <value type="java.lang.Integer">${detail.ws.connect.timeout}</value>
  70. </entry>
  71. <entry key="com.sun.xml.internal.ws.request.timeout">
  72. <value type="java.lang.Integer">${detail.ws.request.timeout}</value>
  73. </entry>
  74. <entry key="com.sun.xml.internal.ws.connect.timeout">
  75. <value type="java.lang.Integer">${detail.ws.connect.timeout}</value>
  76. </entry>
  77. <!--Pro JBoss je jen jedno nastaveni (vice viz http://community.jboss.org/message/340300)-->
  78. <entry key="org.jboss.ws.timeout">
  79. <value type="java.lang.Integer">${detail.ws.request.timeout}</value>
  80. </entry>
  81. <!--/Timeouty-->
  82. </jaxws:properties>
  83. </jaxws:client>
  84.  
  85. <!-- Looks for any annotated Spring beans -->
  86. <context:component-scan base-package="eu.ibacz.cepo.core"/>
  87.  
  88. <bean class="eu.ibacz.cepo.core.service.ServiceLocatorFactory" factory-method="setInstance" autowire="byType">
  89. <constructor-arg ref="serviceLocatorImpl"/>
  90. </bean>
  91.  
  92. </beans>
Add Comment
Please, Sign In to add comment