ULTRAESB - Poll a directory for a file with a specific pattern and upload it with an authenticated HTTP PUT
<u:proxy id="file-proxy">
<u:transport id="file">
<u:property name="url" value="file:///hunt/pixmania/orders/incoming"/>
<u:property name="fileNamePattern" value=".*\.pxml"/>
<u:property name="startDelay" value="1000"/>
<u:property name="repeatInterval" value="1000"/>
<!--<u:property name="concurrent" value="true"/>-->
<!--<u:property name="cronExpression" value="0 * * ? * MON-FRI"/>-->
<u:property name="moveAfterProcess" value="/hunt/pixmania/orders/processed"/>
<u:property name="moveAfterFailure" value="/hunt/pixmania/orders/failed"/>
<u:property name="moveTimestampFormat" value="yyyy_MM_dd_'T'HH_mm_ss.SSSSZ"/>
</u:transport>
<u:target>
<u:inSequence>
<u:java><![CDATA[
String fileName = msg.getFirstTransportHeader("FileName");
System.out.println("Got file : " + fileName);
mediation.addPreemptiveBasicAuthentication(msg, "trevor", "password");
msg.setContentType("text/xml");
msg.addMessageProperty("HTTP_METHOD", "PUT");
]]></u:java>
</u:inSequence>
<u:inDestination>
<u:address>http://192.168.0.1:7800/ProcessOrders/SubmitOrder</u:address>
</u:inDestination>
</u:target>
</u:proxy>
<u:transport id="file">
<u:property name="url" value="file:///hunt/pixmania/orders/incoming"/>
<u:property name="fileNamePattern" value=".*\.pxml"/>
<u:property name="startDelay" value="1000"/>
<u:property name="repeatInterval" value="1000"/>
<!--<u:property name="concurrent" value="true"/>-->
<!--<u:property name="cronExpression" value="0 * * ? * MON-FRI"/>-->
<u:property name="moveAfterProcess" value="/hunt/pixmania/orders/processed"/>
<u:property name="moveAfterFailure" value="/hunt/pixmania/orders/failed"/>
<u:property name="moveTimestampFormat" value="yyyy_MM_dd_'T'HH_mm_ss.SSSSZ"/>
</u:transport>
<u:target>
<u:inSequence>
<u:java><![CDATA[
String fileName = msg.getFirstTransportHeader("FileName");
System.out.println("Got file : " + fileName);
mediation.addPreemptiveBasicAuthentication(msg, "trevor", "password");
msg.setContentType("text/xml");
msg.addMessageProperty("HTTP_METHOD", "PUT");
]]></u:java>
</u:inSequence>
<u:inDestination>
<u:address>http://192.168.0.1:7800/ProcessOrders/SubmitOrder</u:address>
</u:inDestination>
</u:target>
</u:proxy>
Great post! I hope more unique tips about this topic and I am always following your blog. Please keeping more updates...
ReplyDeleteEmbedded System Course Chennai
Embedded Training in Chennai
Spark Training in Chennai
Unix Training in Chennai
Linux Training in Chennai
Primavera Training in Chennai
Tableau Training in Chennai
Oracle Training in Chennai
Embedded System Course Chennai
Embedded Training in Chennai
In the beginning, I would like to thank you much about this great post. Its very useful and helpful for anyone looking for tips. I like your writing style and I hope you will keep doing this good working.
ReplyDeleteEthical Hacking Course in Chennai
Certified Ethical Hacking Course in Chennai
PHP Training in Chennai
ccna Training in Chennai
Web Designing Course in Chennai
ethical hacking course in chennai
hacking course in chennai
Thanks for sharing this valuable information to our vision. You have posted a worthy blog keep sharing.
ReplyDeleteArticle submission sites
Education
top ca institutes in chennai
ReplyDeleteA Professional Coaching Institute, founded with the vision of Creating Quality Chartered Accountants, has been a stepping stone to the success of Aspiring Students.
Now
hadoop interview questions and answers
ReplyDeleteCracking Hadoop interview will be easy with 101 Hadoop Interview Questions with Answers. Hope this will gain you with more knowledge!
hadoop interview questions and answers for experienced
java interview questions and answers for experienced
ReplyDeleteAre you a fresher who wants to crack the Java Interview Questions and Answers? Here we offer you some of the major Core Java Interview Questions for Freshers.
java interview questions for experienced
This Information Very Helpful to everyone
ReplyDeleteselenium interview questions and answers
selenium interview questions and answers for experienced
selenium interview questions and answers pdf download
hadoop interview questions and answers
hadoop interview questions and answers for experienced
hadoop interview questions and answers pdf
hadoop testing interview questions and answers for experienced
hadoop developer interview questions and answers for experienced
ReplyDeleteThis blog is a great source of information which is very useful for me.data science interview questions and answers
data scientist interview questions and answers pdf
devops interview questions and answers for experienced
pega testing interview questions
selenium interview questions with answers
java interview questions and answers for experienced
Great experience for me by reading this blog. Thank you for the wonderful article.
ReplyDeleteSoftware testing training in Tambaram
Software testing training in Anna Nagar
Software testing training in T Nagar
Software testing training in Porur
Software testing training in OMR
Software testing training in chennai
DeleteAwesome Blog!!! Thanks for it, it is more useful for us.
Android Training in Tambaram
Android Training in Anna Nagar
Android Training in Velachery
Android Training in T Nagar
Android Training in Porur
Android Training in OMR
Android Training in Chennai
Awesome Blog!!! Thanks for it, it is more useful for us.
ReplyDeletegraphic design courses in tambaram
graphic design courses in Porur
graphic design courses in Chennai
Awesome Blog!!! Thanks for it, it is more useful for us.
ReplyDeleteTally Course in Tambaram
Tally Course in Anna Nagar
Tally Course in Velachery
Tally Course in T Nagar
Tally Course in Porur
Tally Course in OMR
Tally course in Chennai
This blog is a great source of information which is very useful for me.
ReplyDeleteDevOps course in Tambaram
DevOps Training in Anna Nagar
DevOps Training in T Nagar
DevOps Training in Porur
DevOps Training in OMR
DevOps Training in Chennai
I really enjoyed this article. I need more information to learn so kindly update it.
ReplyDeleteSEO Training in Anna Nagar
SEO Training in Velachery
SEO Training in OMR
SEO Training in T Nagar
SEO Training in Porur
SEO Training in Chennai