Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Camel: Transform message using transform method

Camel: Transform Message Using Transform Method

In this post, I am going to explain how to Transform the message using transform() method of camel framework.

Suppose a Folder ‘f1’ has text files, and you want to copy all the files from folder ‘f1’ to ‘f2’. While copying, you would like to covert the content to uppercase.

You can achieve above requirement using transform method.

Assume ‘sourceFolder’ has a file ‘quotes.txt’.

quotes.txt
If you work just for money, you'll never make it, but if you love what you're doing and you always put the customer first, success will be yours.

Your application should copy quotes.txt and place it in folder ‘destFolder’.

Follow below steps to build complete working application.



This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

Camel: Transform message using transform method

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×