Created
November 22, 2016 19:15
-
-
Save dannylamb/59c7eaf216069ca3c42e501e92292926 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"?> | |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" | |
xsi:schemaLocation=" | |
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd | |
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd | |
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> | |
<reference id="dataSource" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=jdbc/idiomaticds)"/> | |
<!-- Force load the sql component without having to add a Java class with an import statement. --> | |
<bean id="sql" class="org.apache.camel.component.sql.SqlComponent"> | |
<property name="dataSource" ref="dataSource"/> | |
</bean> | |
<camelContext id="IslandoraSync" xmlns="http://camel.apache.org/schema/blueprint"> | |
<route> | |
<from uri="timer://foo?period=5000" /> | |
<to uri="sql:select * from uris" /> | |
<log message="${body}"/> | |
</route> | |
</camelContext> | |
</blueprint> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment