Last active
November 10, 2015 02:38
-
-
Save ghostflare76/2ec11f2b20b642573255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> | |
<int:inbound-channel-adapter channel="quakeinfotrigger" expression="''"> | |
<int:poller fixed-delay="60000"></int:poller> | |
</int:inbound-channel-adapter> | |
<int:channel id="quakeinfo"/> | |
<int:channel id="quakeinfotrigger"></int:channel> | |
<int-http:outbound-gateway id="quakerHttpGateway" | |
request-channel="quakeinfotrigger" | |
url="http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson" | |
http-method="GET" | |
expected-response-type="java.lang.String" | |
charset="UTF-8" | |
reply-channel="quakeinfo"> | |
</int-http:outbound-gateway> | |
<int-amqp:outbound-channel-adapter amqp-template="amqpTemplate" channel="quakeinfo" /> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment