Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration"
- xmlns:int-http="http://www.springframework.org/schema/integration/http"
- xmlns:int-amqp="http://www.springframework.org/schema/integration/amqp"
- xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd
- http://www.springframework.org/schema/integration/http http://www.springframework.org/schema/integration/http/spring-integration-http.xsd">
- <import resource="rabbit-context.xml" />
- <!-- trustStore y keystore estan para certificar el puñetero https cert -->
- <bean id="trustStore">
- <property name="targetObject" value="#{@systemProperties}" />
- <property name="targetMethod" value="putAll" />
- <property name="arguments">
- <props>
- <prop key="javax.net.ssl.trustStore">
- <jks key location>
- </prop>
- <prop key="javax.net.ssl.keyStorePassword">password</prop>
- </props>
- </property>
- </bean>
- <bean id="keystore">
- <property name="targetObject" value="#{@systemProperties}" />
- <property name="targetMethod" value="putAll" />
- <property name="arguments">
- <props>
- <prop key="javax.net.ssl.keyStore">
- <jks key location>
- </prop>
- <prop key="javax.net.ssl.keyStorePassword">password</prop>
- </props>
- </property>
- </bean>
- <int:inbound-channel-adapter channel="issinfotrigger"
- expression="''">
- <int:poller fixed-delay="60000"></int:poller>
- </int:inbound-channel-adapter>
- <int:channel id="issinfo" />
- <int:channel id="issinfotrigger"></int:channel>
- <int-http:outbound-gateway id="issHttpGateway"
- request-channel="issinfotrigger" url="https://api.wheretheiss.at/v1/satellites/25544"
- auto-startup="true" http-method="POST" expected-response-type="java.lang.String"
- charset="UTF-8" reply-channel="issinfo">
- </int-http:outbound-gateway>
- <int-amqp:outbound-channel-adapter
- amqp-template="amqpTemplate" channel="issinfo" />
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement