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:
- In the Enterprise Explorer, expand
PlantsByWebSphereEAR.
- Double-click
Deployment Descriptor: PlantsByWebSphereAjax to open the EAR in the Application Deployment Descriptor editor.
- Switch to the Deployment tab of the editor.
- In the
Data source defined in the JDBC provider selected above list, select the data source
PLANTSDB.
- 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.
- 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:
- Right-click
PlantsByWebSphere_WEB and select
Run As | Run on Server. The Run On Server wizard opens.
- Click
WAS from the list of servers and click Next.
- Click Next again.
- 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