The Airport sample is provided as an introduction to eXtreme Scale installed in the WebSphere Application Server Version 8.5 Liberty profile environment. Liberty is a lightweight application server with a small Java virtual machine (JVM) footprint that starts in less than five seconds. The Liberty profile server runs simple create, read, update, and delete functions in the eXtreme Scale grid in milliseconds. The sample shows how large amounts of data (in this case, information about thousands of airports worldwide) can be stored using the WebSphere Liberty profile along with WebSphere eXtreme Scale. When using the sample, the time taken to complete any create, read, update, or delete operation is displayed, demonstrating the speed of accessing the grid.
Download the sample to run and modify the code. Download airportAgentLibertyWXS.zip for an example agent code with eXtreme Scale data grid with Liberty Profile, plus integration with IBM's mobile Worklight platform. Download airportLibertyWXS.zip if you have the older Liberty Profile v8.5.0 only.
- WebSphere eXtreme Scale Version 8.6 or later
- WebSphere Application Server Version 8.5 Liberty Profile, to install this, visit our friends at WASdev
- Eclipse IDE for Java EE Developers , Indigo or later with the WebSphere Application Server Developer Tools
Running the sample (quick start)
Creating the Airport sample server
- Navigate to your Airport sample download directory and copy the entire airportAllInOneServer folder. This server contains everything necessary to use the sample.
- Navigate to your <liberty_installation>/usr/servers directory and paste the airportAllInOneServer folder here. The folder is now in the appropriate location for running the server.
Running the Airport sample server
- In a command line, navigate to your <liberty_installation>/bin directory.
- To start the server, run the command server.bat start <serverName>.
server.bat start airportAllInOneServer
- Open a web browser and enter the URL: http://<host_name>:<port>/airport/
- The <hostname> is the host name or IP address of WebSphere Application Server and <port> is the web server port for your WebSphere Application Server. Check the console.log file in <liberty_installation>/usr/servers/<serverName>/logs for the URL where the web application is available. See the following example:
Now that the server is running and you can access the web application, you are ready to start using the sample.
To stop the server after you are done using the sample, run the command server.bat stop <serverName>.
server.bat stop airportAllInOneServer
Using the sample
After you open the Airport sample in a web browser, you can interact with the grid.
To perform a read operation on an airport already in the grid, enter an airport code (examples: JFK or LAX). The dropdown autocomplete feature helps you search for airports already in the grid.
- Click Search. The information corresponding to the airport code is displayed.
- You are able to Update or Delete information for this airport.
If you do not see the airport you want in the dropdown, click Insert New to create a grid entry for a new airport.
- Complete the form for airport information and click Insert.
- Time taken for each create, read, update, or delete operation is displayed on the bottom of the page.
Search or add another airport at any time.
- You are able to search or add an airport the same way as before, or click any airport in the Search History, and then click Search.