...
Code Block |
---|
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender"> <parameter name="mail.smtp.from">esb.sample@gmail.com</parameter> <parameter name="mail.smtp.user">esb.sample</parameter> <parameter name="mail.smtp.password">esb*sample8</parameter> <parameter name="mail.smtp.host">smtp.gmail.com</parameter> <parameter name="mail.smtp.port">587</parameter> <parameter name="mail.smtp.starttls.enable">true</parameter> <parameter name="mail.smtp.auth">true</parameter> </transportSender> |
Building the sample
The .dbs file of this Follow the steps given below.
- The sample data service (EventingSample) should be
...
- deployed
...
- using the instructions in the Samples Setup section.
- Log in to the management console and select Upload under Data Service menu.
- Select the EventingSample.dbs file from the
<DSS_HOME>/samples/dbs/rdbms/
folder and click Upload. - If the file is deployed successfully, the Deployed Services window appears with the new data service listed. Alternatively, copy the file to the
<DSS_HOME>/repository/deployment/server/dataservices
folder. It will be deployed instantly as hot deployment, which is enabled in Data Services Server by default. - Edit the data service of your product and edit the data service by adding a valid email address: Here we use
- Click List in the Services menu, and select the EventingSample service.
- Use the XML Edit option to edit the dataservice. In the XML view, replace all occurrences of "test@test.com" with your own email address
...
- .
Running the Sample
The sample service can be run using the TryIt tool, which is bundled with the WSO2 Data Services Server, or a code-generated java client sample as discussed in the Data Services Clients section.
...