Advertisement
Guest User

Untitled

a guest
Nov 25th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <mule xmlns:mongo="http://www.mulesoft.org/schema/mule/mongo" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
  4. xmlns:spring="http://www.springframework.org/schema/beans"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
  7. http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
  8. http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
  9. http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd
  10. http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
  11. http://www.mulesoft.org/schema/mule/mongo http://www.mulesoft.org/schema/mule/mongo/current/mule-mongo.xsd">
  12. <db:generic-config name="MicrosoftSQLServerDB" url="jdbc:sqlserver://localhost:1433;DatabaseName=TESTNAV;user=sa;password=sa@123" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" doc:name="Generic Database Configuration"/>
  13. <mongo:config name="mymongoconfig" database="mydb1" doc:name="Mongo DB"/>
  14. <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
  15. <flow name="replicateFlow">
  16. <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
  17. <db:select config-ref="MicrosoftSQLServerDB" doc:name="Database">
  18. <db:parameterized-query><![CDATA[Select * from [E_M_ Electro-Mechanicals P Ltd$Customer]]]></db:parameterized-query>
  19. </db:select>
  20. <logger message="No. of Records fetched from Table:#[payload.size()]" level="INFO" doc:name="Logger"/>
  21. <mongo:insert-object collection="customer" config-ref="mymongoconfig" doc:name="Mongo DB"/>
  22. </flow>
  23. </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement