Getting started with developing applications

To begin developing WebSphere® eXtreme Scale applications, you must set up your development environment, learn about APIs that you can use, then develop and test your application.

Before you begin

About this task

When you are developing WebSphere eXtreme Scale applications, you can use the embedded server APIs to create and start servers, ObjectGrid instances, and to insert data into the data grid. You can unit test your application and the associated configuration directly in the Eclipse environment. When you are ready to move your application to a broader environment, you can create configuration XML files that you import to create your deployment.

Procedure

  1. Set up a development environment and access the API documentation.

    You can begin to use the APIs to develop your applications. You can also use the API documentation within the development environment.

    More information:Setting up a stand-alone development environment in Eclipse

    More information: Accessing API documentation

  2. Create a simple application that starts servers, creates an ObjectGrid instance, and inserts data into the data grid.
    1. Use the ServerFactory API to start and stop servers.

      More information:Using the embedded server API to start and stop servers

    2. Use the ObjectGridManager API to retrieve the ObjectGrid instance that you created.

      More information: Interacting with an ObjectGrid using the ObjectGridManager interface

    3. Use the ObjectMap API to insert data into the data grid.

      More information: Caching objects with no relationships involved (ObjectMap API)

      The ObjectMap API is the simplest way to access and write data to the data grid. If your objects have complex relationships, you can use the following APIs to read, write, and update data: For more information about choosing between the different APIs, see Developing applications.
  3. Unit test your application.

    You can also use the xscmd utility to display information about the running servers, replicas, and so on. See Administering with the xscmd utility for more information.

  4. When you are satisfied with your application within the development environment, create XML configuration files and update your application to use the configuration. The Getting Started sample application provides examples of these configuration files and a simple application that uses the configuration files.

    More information:Tutorial: Getting started with WebSphere eXtreme Scale

  5. Run your application using the XML configuration files. How you start your servers depends on the environment that you are using.

    You can run your application in one of the following containers: