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 . The location field displays the location of the database.