|
Download the demonstration now! Introduction This sample application demonstrates a communication session between the eXtremeDB database runtime running in the context of an embedded Web Server and a Windows-based client running in the context of a web browser (AWS Explorer). The eXtremeDB database keeps the data collected by the automatic weather station (AWS), and communicates its XML representation to the Windows client via SOAP. Multiple AWS servers can be monitored from the AWS Explorer. Each AWS is assumed to operate independently. The following diagram shows the essential parts of the application's architecture: ![]() Data collected by each weather station is stored in the database in the eXtremeDB native format (optimized for in-memory storage). The database resides in main memory of the AWS and is controlled by the eXtremeDB runtime. There are two types of data stored in the database: weather-related data acquired by weather sensors, such as wind direction and speed, pressure, humidity, etc.; and diagnostics data collected during the AWS self-diagnostic tests. Self-diagnostics are run periodically and verify the well-being of the sensors and the battery power. The following eXtremeDB database schema is used to describe the AWS database:
|
|
Installation and how to run this demonstration program The following files are installed:
The server program is currently available for Microsoft Windows 32-bit platforms, Linux and QNX 6.1.x. The only browser that is currently supported is Microsoft Internet Explorer. We have tested this demo with IE version 6, but it should be fine with 5.0 as well. If you are interested in running the server on some other platform, please contact us, we will try to accommodate you. We also will be glad to support different browsers. We are currently looking to supporting Netscape, Mozilla and the QNX Voyager. To run the server from the console window, change directories to target\bin, then simply type server 80 If port is not specified, the server will be listening on port 80. In order to access the website, point your browser to http://localhost:port_number/meteo.html If the server is running on a remote machine, and for example, the IP address on the remote machine is 192.168.1.103, point the browser to http://192.168.1.103/meteo.html The "Stations" screen lists all connected AWS. By default there is one station connected to the AWS explorer: localhost:80/meteo. Additional stations could be easily connected to the Explorer, just type in the station URL in the "URL" edit box and click the "Add" button. For example, to add a station running on the remote computer with the IP address 192.168.1.103 on port 82, type: http://192.168.1.103:82/meteo The Explorer will try to communicate with the server running on the remote machine, and add the new station to the list of stations on the left-hand side of the screen. Each station status is shown on the right-hand side of the screen. You may push the "Refresh" button and the Explorer will send an XML/ SOAP request to the selected server and obtain the configuration data for the server. It is possible to change some configuration settings:
The "Weather" screen is used to display weather measurements from all connected stations. To read weather updates, set up the time and push the "Request" button. Checking the "Auto" check box will cause the Explorer to request weather updates automatically. Again, each request to the server and each response from the server are in the form of XML documents. The "Diagnostics" screen allows requesting of the self-diagnostics data from each AWS. Simply set the time and push the "Request" button. The "Soap" screen displays the last Soap request and last Soap response. The entire session is recorded and is displayed in the pop-up window activated when the Explorer is started. Session information contains all SOAP requests sent to each AWS server and all SOAP responses for them.
|




