Panel |
---|
All files for this example you can find are in sample.zip. |
Objective: 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. The following scheme visually displays the processes running in this example.
...
1. Find the main.xml
and fault.xml
files in the supplied archive. You can find them in the \conf\synapse-config\sequences
folder.
2. Save the files to <WSO2ESB<ESB_HOME>/repository/deployment/server/synapse-configs/default/sequences
folder.
Info | ||
---|---|---|
| ||
The "main" and "fault" sequences are created and preconfigured automatically while installing ESB. |
...
Step 3. Configure ESB
You will now configure the ESB to use the VFS transport for processing the files and the MailTo transport for sending the email message. The scenario requires some modifications of the axis2.xml
(ESB configuration file) located in <WSO2ESB<ESB_HOME>/repository/conf/axis2
.
...
Code Block | ||
---|---|---|
| ||
<transportSender name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportSender"/> |
Configuring
...
the MailTo Transport
This transport can be used to send e-mail messages.
...