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.
Note: If you do not see a server in
the Server view, it is likely that you did not install the WebSphere
Test Environment. Run the product launchpad to install the WebSphere
Test Environment.
- 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_version_number/bin/wsadmin -f wid-install.jacl
-profileName wps_profile_name -username username -password password
- If you started WebSphere ESB Server: Installation Directory/runtimes/bi_version_number/bin/wsadmin -f wid-install.jacl
-profileName esb_profile_name -username username -password password
Keep the command prompt open as you will need it again.
Trouble shooting tips- If your installation directory has a space in it, you will see
an error when you run the command. For example, if your installation
directory is d:\Program Files, you will see this error:
'D:\Program' is not recognized as an internal or external command,
operable program or batch file.
Put double quotes around
the command, as follows: "D:\Program Files\IBM\WID7_WTE\runtimes\bi_v7\bin/wsadmin"
-f wid-install.jacl -profileName qwps -username admin -password admin
- The default user is "admin" and the default password is "admin".
- The default WebSphere Process Server profile name is qwps.
- The default WebSphere ESB server profile name is qesb.
- To see the profile name of your server in WebSphere
Information Developer. switch to the servers view, right click the
server and select Manager Server Profiles.
- 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.