Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

  1. The sample data service (EventingSample) should be

...

  1. deployed

...

  1. using the instructions in the Samples Setup section.
  2. Log in to the management console and select Upload under Data Service menu.
  3. Select the EventingSample.dbs file from the <DSS_HOME>/samples/dbs/rdbms/ folder and click Upload
  4. 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.
  5. Edit the data service of your product and edit the data service by adding a valid email address: Here we use
    1. Click List in the Services menu, and select the EventingSample service. 
    2. 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
    .

...

    1. .

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.

...