Skip to content

WebSphere Liberty To WebSphere eXtreme Scale Setup

aspyker edited this page May 29, 2013 · 34 revisions

Download the following free for developers or trial versions of WebSphere software:

Install the following development tools:

Install the one dependency that isn't available in Maven (WebSphere eXtreme Scale library):

cd \wxs\lib
mvn install:install-file -Dfile=objectgrid.jar -DgroupId=com.ibm.websphere.objectgrid -DartifactId=objectgrid -Dversion=8.6.0.0-GA -Dpackaging=jar

Get Java, Maven, Git, etc into Path and JAVA_HOME set

  • TODO - document

Build the code:

mvn clean compile package install

Start WebSphere eXtreme Scale by using the getting started sample

cd %OBJECT_GRID_INSTALL_DIR% (objectgrid)
xcopy gettingstarted\*.* acmeair\. /s/e/i/v/q
cd acmeair
edit the env.bat to point to your build output (TODO: be specific here of how)
SET SAMPLE_SERVER_CLASSPATH=%SAMPLE_HOME%\server\bin;%SAMPLE_COMMON_CLASSPATH%;C:\work\eclipse\acmeair\acmeair-common\target\classes;C:\work\eclipse\acmeair\acmeair-services-wxs\target\classes;C:\Users\aspyker\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar
copy %ACMEAIR_SOURCE_DIR%\acmeair-services-wxs\src\main\resources\deployment.xml %OBJECT_GRID_INSTALL_DIR%\acmeair\server\config\.
copy %ACMEAIR_SOURCE_DIR%\acmeair-services-wxs\src\main\resources\objectgrid.xml %OBJECT_GRID_INSTALL_DIR%\acmeair\server\config\.
.\runcat
in another window...
.\runcontainer c0

Load the data into the data grid:

cd %ACMEAIR_SOURCE_DIR%
cd acmeair-loader
mvn exec:java

Create and start the WebSphere Liberty server and then deploy the application

cd %WLP_INSTALL_DIR%
bin\server create server1
edit usr\servers\server1\server.xml to add the following:
     <featureManager>
         <feature>jaxrs-1.1</feature>
         <feature>jndi-1.0</feature>
     </featureManager>
bin\server start server1
copy acmeair-webapp\target\acmeair-webapp-1.0-SNAPSHOT.war \wlp\usr\servers\server1\dropins\.

Load the following url:

http://localhost:9080/acmeair-webapp-1.0-SNAPSHOT
Clone this wiki locally