38 WCTME: Application Development and Case Study
The actual updates are defined on the server and applied to the client devices
based on the server side definitions.
See Figure 2-4 on page 27 for how to configure the DMS server settings that the
client uses.
2.3.1 Using the demonstration application with multiple devices
Here we answer some questions about using multiple devices:
Why does the second device not see the status changes from first device?
If multiple devices on multiple buses are used, the drivers on the other buses
will not see status changes made with your device, unless they regularly
perform syncs. Keep in mind the time delay of syncs and mirror databases
being updated with the real databases.
Why doesn't the second device receive MQe messages regarding the
location of customers’ vehicles?
Assuming multiple syncs are performed, other devices running the application
will show customers who have arrived on other buses. The application is not
designed to send MQe message to devices other than the requesting device.
As a result, the second device will not receive the MQe messages from the
server with the location of the customer's vehicle. It will continue to show a "?"
for the location, until that customer is marked as "exited" and the data is sync
again.
Exercise for the adventurous
Add a bus arrived status column to the database table and then update the
application logic to only display arrived customers on your bus. The application
will have to be synced more often for this data to be available to other client
applications running against the same database.
2.4 Building the sample application
To implement our design for the ITSO Rentals sample application, we will create
several custom application bundles.
Each bundle will encapsulate some of the functionality (and technology) behind
the sample application. Separately each bundle will expose an interface or
service that can be used by another bundle. A test bundle will be created to test
each bundle (or combination of bundles) as we assemble the desired
functionality. Together all the bundles, minus the test bundle, are our completed
sample application.