This documentation is for WSO2 Data Services Server 3.2.2. View documentation for the latest release.
Page Comparison - Boxcarring Sample (v.4 vs v.5) - Data Services Server 3.2.2 - WSO2 Documentation

Versions Compared

Key

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

...

  1. Ensure that the RDBMSSampleService is deployed as described in Samples Setup.
  2. Log in to the management console of your server and click List under Services in the navigator. The See that RDBMSSampleService will be  is listed here.
  3. Click Try this service to open the TryIt tool. 
  4. Run employeesByNumber  operation with the  employeeNumber  1002. Output is as follows:
  5. Run the "begin_boxcar" operation and the service will switch to a boxcarring session.
  6. Run the "incrementEmployeeSalary" operation and give the values "1000" for increment and "1002" for the employeeNumber fields.
  7. Open up a different type of a browser for the service to have a fresh session, so it won't be in the same boxcarring session as earlier. After switching browsers, run the "employeesByNumber" operation with employeeNumber=1002 to check the employee information.
  8. Note that the salary is not incremented. The reason is that the request made earlier in boxcarring mode is not executed immediately. It is executed when the boxcarring session ends.
  9. Go back to the original browser, run the "incrementEmployeeSalary" operation and give the values "500" for increment and "1002" for the employeeNumber fields. Then, run the "end_boxcar" operation.
  10. Next, in any of the two browsers, run the "employeesByNumber" operation with employeeNumber=1002 to check the information. The output will be similar to the following:

...