To run the script that installs the customer database and
back-end on the server, complete the following steps:
- Switch to the Server view. If only one server profile is installed
(WebSphere® Process Server or WebSphere ESB
Server), right-click on the server and select Start to
start the server. If both server profiles are installed, choose one
of them.
- You will now install the runtime components used in this sample.
When the server has started successfully, open a command prompt and
switch to Install Shared Resources Directory/plugins/com.ibm.wbit.samples.content/artifacts/stockquote/bin/. Note: You
may find multiple versions of the com.ibm.wbit.samples.content in
your install. Always choose the one with the highest version number
since it will be the latest one.
- Run one of the following commands:
- If you started WebSphere Process Server: Installation Directory/runtimes/bi_v62/bin/wsadmin
-f wid-install.jacl -profileName wps -username username -password password
- If you started WebSphere ESB Server: Installation Directory/runtimes/bi_v62/bin/wsadmin
-f wid-install.jacl -profileName esb -username username -password password
Keep the command prompt open as you will need it again. The default
user is 'admin' and password is 'admin'.
- When the script has finished successfully it will display the
port number of the server on which it was installed. The port number
should be 9080 as shown in the following image.If the port number is 9080 as shown, you can skip the following
steps.
- If the port is different from 9080 we have to ensure that the
Stock Quote application looks for the database on the correct port.
This will affect the imports. To change the port:
- Open the Assembly Diagram of the Stock Quote module.
- Select the DelayedService import and in the Properties view, click Binding.
- The Address text box will contain something similar to http://localhost:9080/DelayedService/services/DelayedServiceSOAP.
- Overwrite "9080" with the port number displayed when you ran the
script.
- Follow the previous steps for the RealtimeService import and then
save your module.
- Restart the server after the script has been installed successfully
by right-clicking it, selecting Restart.