oracle11g - Mule Capturing Oracle DB Change Notification -


i'm pretty new java , mulesoft, have been working on 1 poc. it's nothing capturing database change notification in mule, db polling cannot implemented due performance issues & datamapper cannot used. can suggest me right approach on this. below sample code on have been working.

<db:oracle-config name="oracle_configuration" host="localhost" port="1521" instance="xe" user="hr" password="hr" doc:name="oracle configuration1"/>     <file:connector name="outputfile" autodelete="false" streaming="true" validateconnections="true" doc:name="file" outputappend="true" outputpattern="#[function:datestamp:dd-mm-yy]_#[function:systime].txt" dynamicnotification="true" writetodirectory="c:\users\ibm_admin\mulesoftexamples"/> <db:oracle-config name="oracle_configuration1" url="jdbc:thin.oracle://localhost:1521/hr" doc:name="oracle configuration1" transactionisolation="read_committed"/> <http:request-config name="http_request_configuration" host="localhost" port="1521" basepath="alertcapture" doc:name="http request configuration"/> <file:endpoint path="c:\users\ibm_admin\mulesoftexamples" outputpattern="#[function:datestamp:dd-mm-yy]_#[function:systime].txt" connector-ref="file" name="file" responsetimeout="10000" encoding="utf-8" doc:name="file"/> <flow name="alertcaptureflow">     <poll doc:name="poll">         <db:select config-ref="oracle_configuration"   doc:name="changenotify" target="#[flowvars.selectresult]" >             <db:parameterized-query><![cdata[select * nfevents;]]></db:parameterized-query>         </db:select>     </poll>     <http:request config-ref="http_request_configuration" path="/alertcapture/src/main/app" method="get" doc:name="fetchdata"/>     <file:outbound-endpoint path="/alertcapture/src/main/app" outputpattern="#[function:datestamp:dd-mm-yy]_#[function:systime].txt" connector-ref="outputfile" responsetimeout="10000" doc:name="alertcapture"  encoding="utf-8" mimetype="text/xml" ref="file"/> </flow> 

>


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -