Advertisement
aironman

my httpgateway.xml from airman

May 8th, 2014
217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration"
  4. xmlns:int-http="http://www.springframework.org/schema/integration/http"
  5. xmlns:int-amqp="http://www.springframework.org/schema/integration/amqp"
  6. xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
  7. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  8. http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd
  9. http://www.springframework.org/schema/integration/http http://www.springframework.org/schema/integration/http/spring-integration-http.xsd">
  10.  
  11. <import resource="rabbit-context.xml" />
  12. <!-- trustStore y keystore estan para certificar el puñetero https cert -->
  13. <bean id="trustStore">
  14. <property name="targetObject" value="#{@systemProperties}" />
  15. <property name="targetMethod" value="putAll" />
  16. <property name="arguments">
  17. <props>
  18. <prop key="javax.net.ssl.trustStore">
  19. <jks key location>
  20. </prop>
  21. <prop key="javax.net.ssl.keyStorePassword">password</prop>
  22. </props>
  23. </property>
  24. </bean>
  25.  
  26. <bean id="keystore">
  27. <property name="targetObject" value="#{@systemProperties}" />
  28. <property name="targetMethod" value="putAll" />
  29. <property name="arguments">
  30. <props>
  31. <prop key="javax.net.ssl.keyStore">
  32. <jks key location>
  33. </prop>
  34. <prop key="javax.net.ssl.keyStorePassword">password</prop>
  35. </props>
  36. </property>
  37. </bean>
  38. <int:inbound-channel-adapter channel="issinfotrigger"
  39. expression="''">
  40. <int:poller fixed-delay="60000"></int:poller>
  41. </int:inbound-channel-adapter>
  42.  
  43. <int:channel id="issinfo" />
  44.  
  45. <int:channel id="issinfotrigger"></int:channel>
  46.  
  47. <int-http:outbound-gateway id="issHttpGateway"
  48. request-channel="issinfotrigger" url="https://api.wheretheiss.at/v1/satellites/25544"
  49. auto-startup="true" http-method="POST" expected-response-type="java.lang.String"
  50. charset="UTF-8" reply-channel="issinfo">
  51. </int-http:outbound-gateway>
  52.  
  53. <int-amqp:outbound-channel-adapter
  54. amqp-template="amqpTemplate" channel="issinfo" />
  55.  
  56. </beans>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement