Easy WebSphere eXtreme Scale development with Liberty
JonMarshall 1000009QM4 Comments (5) Visits (7648)
The current releases of WebSphere eXtreme Scale and WebSphere Application Server Liberty profile bring together a pretty compelling development environment and development experience. Based on the freely available developer tooling, we can quickly put together a development environment based on
Download a copy of Eclipse and run it. I'm using Eclipse Indigo + Java EE SR2. Go to the Help -> Eclipse Market Place...
Type "WebSphere" and click Go. This will perform a search, after which you should be able to select and install
The next step is to download the Liberty runtime itself and the eXtreme Scale plugin. I found this easier to download and install manually, just so I know where everything is (It is possible to just do this through the developer tools otherwise)
Download and install Liberty by selecting the required directory and executing:
java -jar wlp-
Download and install WXS for Liberty into the same directory as the Liberty profile
java -jar wxs-wlp_###.jar
To run the Liberty server from Eclipse, you need to go to the "Server" panel (in the Java EE perspective), right-click and select New. Follow the dialog box and select the Liberty Profile type of server. First time through, you will have to create a new server runtime environment too to point at your Liberty installation.
Check it starts and stops ok. It won't take long! (Sub-second on my laptop)
To create a great development environment for eXtreme Scale, we can configure a complete grid (catalog server and container) to run in a single Liberty server. We will configure the WXS server Liberty feature. Few configuration parameters are need to do this, although the full set of WXS configuration parameters are available if needing to deploy it in a fully available environment.
Open the server.xml for the Liberty server. If you're not familiar will Liberty, then just double-click on the server instance in the Server panel and then click Open server configuration. The following is the minimum WXS Liberty configuration needed to run the grid in Liberty
<server description="new server">
Configuring a grid to run in Liberty is now very easy. We can take the normal objectgrid.xml definition file (note the name and capitalization) and copy it to the Liberty config directory. It will detect it when starting up Liberty and start up the grid.
A project folder is created when you create a new Liberty server.
<?xml version="1.0" encoding="UTF-8"?>
Start up the Liberty server.
You will have noticed that we enabled info level logging. This is output to messages.log in the logs directory of the server directory used above. (You may need to press f5 to see the log file)
ObjectGrid Server LibertyWXS is ready to process requests
ObjectGrid Grid is enabled...
Testing the grid
If you're in need of a sample application to test the grid, there is a nice easy web application "Getting Started Web" available from the Elas