Cleanup tasks
Before you remove the Error Handler sample from the broker, you
must complete the following tasks:
- Delete the ErrorHandler execution group:
- In the WebSphere Message Broker Toolkit, right-click the ErrorHandler
execution group that you created in the setup instructions (see
Setting up the Error Handler sample), click
Delete > Execution Group.
- Stop the broker.
On Windows: Start the command console that can run broker
commands.
On Linux: Run the mqsiprofile command in a terminal window.
Enter the following command on the command line to stop your
broker, where MB8BROKER is the name of your broker:
mqsistop MB8BROKER
- Clear the STAFF_IN queue and stop the queue manager.
- Start WebSphere MQ Explorer:
- On Windows: Click
Start > Programs > IBM WebSphere MQ > WebSphere MQ Explorer.
- On Linux: On the command line, type: strmqcfg
- In the Navigator view of WebSphere MQ Explorer, expand the
tree to display the queue manager of the broker, MB8QMGR.
- Expand the queue manager tree to display the queues.
- Right-click the STAFF_IN queue, select
Clear messages.
- In the Clear Queue window, select Queue will be cleared using MQGET API calls,
click Clear.
- Right-click MB8QMGR,
click Stop.
- In the End Queue Manager window, select
Controlled, click OK.
- Remove the XA resource from the queue manager.
- Remove the database switch file from the WebSphere MQ
installation:
- On Windows:
- If you are using DB2: Delete the DB2 file db2swit.dll
- If you are using Oracle: Delete the file UKor8dtc23.dll, from
mq_install_dir\exits
where mq_install_dir is the path to where WebSphere MQ
is installed.
- On Linux:
- If you are using DB2, delete the DB2 file db2swit
- If you are using Oracle, delete the file UKor8dtc23,
from the /var/mqm/exits directory.
- Remove the resource manager, STAFFDB, from the queue manager
of the broker, MB8QMGR:
- Start WebSphere MQ Explorer:
- On Windows: Click
Start > Programs > IBM WebSphere MQ > WebSphere MQ Explorer.
- On Linux: On the command line, type: strmqcfg
- In the Navigator view of WebSphere MQ Explorer, expand the
tree to display the queue manager of the broker, MB8QMGR.
- Right-click MB8QMGR,
click Stop.
- In the End Queue Manager window, select Controlled,
click OK.
- Right-click MB8QMGR, click
Properties. The Properties window
of the queue manager opens.
- On the "XA resource managers" page, select the database
Error Handler resource that you created during the setup instructions
(see Setting up the Error Handler sample),
select Remove.
- Start the queue manager for the broker, in WebSphere MQ
Explorer, right-click MB8QMGR, click
Start. Ensure that the queue manager
started without errors.
- If you are not using the Remove wizard to remove
the sample, you must restart your broker. To
start your broker:
On Windows: Start the command console that can run broker
commands.
On Linux: Run the mqsiprofile command in a terminal window.
Enter the following command on the command line to start
your broker, where MB8BROKER is the name of your broker:
mqsistart MB8BROKER
- Run the Remove wizard.
Back to sample home