Set up the Windows® environment to run WebSphere® Event Broker commands.
On Windows platforms, the components run as services, therefore they do not inherit the environment that is set for the command prompt from which you start them. The components run the mqsiprofile command when they start, which completes the environment initialization.
The mqsiprofile command is located in the directory install_dir\bin.
You must not change the location of the mqsiprofile command, or make user modifications to the command, because it might be replaced if you install service, or an update, to the product.
If
you need to run your own settings, add one or more command files called your_file_name.cmd to
the directory work_path\common\profiles,
where work_path identifies the broker's working
directory.
The default working directory is %ALLUSERSPROFILE%\Application Data\IBM\MQSI where %ALLUSERSPROFILE% is the environment variable that defines the system working directory. The default directory is C:\Documents and Settings\All Users\Application Data\IBM\MQSI; the actual value might be different on your computer.
echo %MQSI_WORKPATH%
When mqsiprofile runs, it automatically calls any additional user-written scripts in this directory.
Two typical reasons for adding scripts are Running with Java 5 and Running database setup scripts.
When you have configured any additional setup, you can use one of the following methods to initialize the runtime environment for components and commands:
Check whether the following conditions apply to your environment:
WebSphere Event Broker supplies two versions of Java™, version 1.4.2 and version 5 (also known as version 1.5). Both versions are installed, and all components are configured to run with the default version 1.4.2. Complete the steps below to configure all components on this system to use Java 5 (you cannot make this change for individual components).
A broker requires access to a database to maintain operational and state data, and might also require access to user databases from deployed message flows.
When you install a database product on Windows, the relevant settings are typically made to the system environment. However, some database managers provide a profile to perform this setup, or provide details of actions that you must take in their documentation. Always check the database product documentation for environment setup details; the information provided here is for general guidance only.
If a profile is provided for the database that you are using, complete the following steps:
When your environment has been set up, see Configuring broker databases for information about setting up your databases for use with the broker.