Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation :
repository/samples/directory that includes all Integration profile samples is changed to
repository/samples/resources/directory that includes all artifacts related to the Integration profile samples is changed to
Objective: Switching from FTP transport listener to mail transport sender.
- You will need access to an FTP server and an SMTP server to try this sample.
- Start the Axis2 server and deploy the
SimpleStockQuoteServiceif not already done.
- Enable mail transport sender in the ESB
- Create a new test directory in the FTP server. Open
<EI_HOME>/samples/service-bus/synapse_sample_255.xmland edit the following values. Change the
transport.vfs.FileURIparameter value point to the test directory at the FTP server. Change the outSequence endpoint address URI email address to a working email address. Values you have to change are marked with "
- Start the Synapse configuration numbered 255:
wso2esb-samples.sh -sn 255
- Copy <
EI_HOME>/samples/service-bus/resources/vfs/test.xmlto the ftp directory given in
VFS transport listener will pick the file from the directory in the FTP server and send it to the Axis2 service. The file in the FTP directory will be deleted. The response will be sent to the given e-mail address.
Setting up Mail Transport Sender
To enable the mail transport sender for samples, you need to uncomment the mail transport sender configuration in the
<EI_HOME>/conf/axis2/axis2.xml. Uncomment the mail transport sender sample configuration and make sure it points to a valid SMTP configuration for any actual scenarios.