Plants by WebSphere setup

This sample demonstrates Web 2.0 features in this product. The Plants by WebSphere sample application demonstrates Ajax-style architecture through the use of Dojo widgets.
Tip: You can run this tutorial using WebSphere® Application Server Versions 6.1 and 7.0.
Tip:

In the Server editor (double-click your server in the Servers view to open the Server editor), if you select Run server with resources on Server, in the Publishing settings for WebSphere Application Server section, when running this application on server, you do not need to do any additional setup.

If you select Run server with resources within the workspace when running this application on server, you need to configure the database location:
  1. In the Enterprise Explorer, expand PlantsByWebSphereEAR.
  2. Double-click Deployment Descriptor: PlantsByWebSphereAjax to open the EAR in the Application Deployment Descriptor editor.
  3. Switch to the Deployment tab of the editor.
  4. In the Data source defined in the JDBC provider selected above list, select the data source PLANTSDB.
  5. In the Resource properties defined in the data source selected above list, select the property databaseName, then click Edit. The Edit Resource Property dialog opens.
  6. In the Value field, type the location of the database PLANTSDB in the EAR project. To find the location of the database, right-click PLANTSDB and select Properties > Resource. The location field displays the location of the database.

To run the sample on server:

  1. Right-click PlantsByWebSphere_WEB and select Run As > Run on Server. The Run On Server wizard opens.
  2. Click WebSphere Application Server from the list of servers and click Next.
  3. Click Next again.
  4. On the Select Tasks page of the wizard, select Deploy module: PlantsByWebSphere_WEB and Deploy module: PlantsByWebSphere_EJB. Click Finish.
The sample is published to the server. A Web browser window opens.

Feedback