|Table of Contents|
- You can find the CSV smooks library
milyn-smooks-csv-1.2.4.jarin the attached
sample.ziparchive. You can find the file in the
Copy the library to the
Note title Note
These configuration changes make system-wide changes to the ESB and the ESB has to be restarted for these changes to take effect.
Configure a local entry as follows. For information on how to add a local entry, see Adding a Local Entry via the Management ConsoleConsole. This local entry will be used to refer to the smooks configuration saved in the
Code Block language xml
<localEntry key="smooks" src="file:resources/smooks-config.xml"/>
- Make sure the file appears in the
- The ESB inserts the records from the text file to the database. Make sure the data is in the info table. The following screenshot displays the content of the
test.infotable with the data from the file.
- Make sure the original file is moved to the
Make sure the e-mail notification is sent to the email address that is specified. The message should contain the file data. The following screenshot displays a notification received.
Excerpt hidden true
This example scenario displays how to pick up a file in a local directory, insert the records from the file into a database, send an email with data from the file, trace and write the log and finally move the file to another directory.