Author |
Message
|
sley |
Posted: Thu Aug 08, 2002 7:16 am Post subject: PUB/SUB :: Broker Configuration |
|
|
Novice
Joined: 18 Dec 2001 Posts: 11
|
Hi.
I've downloaded MQ Series 5.2 (trial version) for Windows to run a simple prototype -- we would like to add an exit routine at the broker level to filter out data.
From the support-pacs, there is sample C code (amqspsra.c) for an exit routine such that if the destination is Q1, it will route it to Q2. I used Visual C++ to compile and create a DLL for it. I've tried searching through the docs and I don't know how to configure the broker to use the exit routine.
Can anyone help?
Thanks for your time & help!
--Selena |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Aug 08, 2002 10:06 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Check out the chapter in the Pub/Sub User's Guide on Setting up a broker. There is a 'Broker:' section in the qm.ini file. There are quite a few parameters and details are given on what they are.
On Windows, you can use the cfgmqbrk command to edit these parameters. |
|
Back to top |
|
 |
sley |
Posted: Thu Aug 08, 2002 10:11 am Post subject: |
|
|
Novice
Joined: 18 Dec 2001 Posts: 11
|
Thanks, bower5932. But I tried using the cfgmqbrk command in windows to configure the broker and the window automatically dies after starting it. I also tried searching for the qm.ini file but this file does not exist.
Is the qm.ini file created when you run the cfgmqbrk command?
Any other suggestions?
Thanks again!
--Selena |
|
Back to top |
|
 |
bower5932 |
Posted: Fri Aug 09, 2002 10:12 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The qm.ini file is kept in the registry on a Windows system. I'd recommend figuring out why the cfgmqbrk command isn't working before using regedt32 to add the appropriate entries. Do you get any kind of FDC files when it fails? Does the regular explorer work? |
|
Back to top |
|
 |
sley |
Posted: Fri Aug 09, 2002 10:15 am Post subject: |
|
|
Novice
Joined: 18 Dec 2001 Posts: 11
|
Thanks for the quick response but I didn't receive any FDC files when it failed. The window automatically shuts down when it's started. I've tried this on other machines but we also experience the same problem.
Thanks Bower!
--Selena |
|
Back to top |
|
 |
sley |
Posted: Fri Aug 09, 2002 10:35 am Post subject: |
|
|
Novice
Joined: 18 Dec 2001 Posts: 11
|
Bower,
Hm...I don't know exactly what I'm looking for in the registry. I don't know which variables I should be modifying to allow exits. Since I don't have the QM.INI file, I don't know what settings to look for or create.
Any suggestions?
thanks again!
--Selena |
|
Back to top |
|
 |
|