Author |
Message
|
MQKev |
Posted: Mon Nov 07, 2005 2:24 am Post subject: Exit causes Error 2059 |
|
|
Newbie
Joined: 07 Nov 2005 Posts: 9
|
Hello,
i`m trying to work with Exits in MQ 5.3 on a WinXP Prof. installation. I´ve used the Sample Exit "MirrorQ" and followed the instructions (Configure Exit in MQ Services, create namelist as parameter information,...).
The Problem now:
If the exit is defined in SYSTEM.DEF.SVRCONN, any connection will cause a failure:
MQCONN ended with reason code 2059
Errorlog says "AMQ9503: channel type invalid for requested action"
I don`t know how to resolve that problem (without that Exit everything runs fine). Where could i place my Exit?
thx & greetz
Kev |
|
Back to top |
|
 |
paulgroo |
Posted: Mon Nov 07, 2005 8:32 am Post subject: Channel type |
|
|
 Centurion
Joined: 07 Jul 2005 Posts: 138 Location: Ireland
|
This sounds like it might have something to do with the parameters that are set on the channel you've created. Is this part of a cluster by any chance? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 07, 2005 8:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
None of the versions of MirrorQ that I can find are used as channel exits.
There's an API exit, and then there is a triggered program.
The API exit is configured on the queue, not on any channel. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MQKev |
Posted: Mon Nov 07, 2005 8:42 am Post subject: |
|
|
Newbie
Joined: 07 Nov 2005 Posts: 9
|
Hi paulgroo,
no it`s just a simple Default-Qmgr without any specials. No Cluster.
The Channel is the default SVRCONN, created by MQ. I`ve just inserted "mirrorQ" in the recieve-exit. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 07, 2005 8:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MQKev wrote: |
I`ve just inserted "mirrorQ" in the recieve-exit. |
Which I think is completely wrong, and thus the cause of your problem. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
paulgroo |
Posted: Mon Nov 07, 2005 9:06 am Post subject: |
|
|
 Centurion
Joined: 07 Jul 2005 Posts: 138 Location: Ireland
|
That sounds like the problem alright...
jefflowrey has this covered like a rug  |
|
Back to top |
|
 |
wschutz |
Posted: Mon Nov 07, 2005 9:38 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
The API exit is configured on the queue, not on any channel.
|
Errr..API exits are configured for the QManager, not on a queue basis (I do see that the Instructions for MirrorQ does mention something about clicking on a queue, but I guess that just a way to set the registry values). _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 07, 2005 9:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
wschutz wrote: |
Quote: |
The API exit is configured on the queue, not on any channel.
|
Errr..API exits are configured for the QManager, not on a queue basis (I do see that the Instructions for MirrorQ does mention something about clicking on a queue, but I guess that just a way to set the registry values). |
I was just looking at the instructions for MirrorQueue.  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MQKev |
Posted: Tue Nov 08, 2005 3:19 am Post subject: |
|
|
Newbie
Joined: 07 Nov 2005 Posts: 9
|
Hi,
yes, thats obviously wrong. MirrorQ is not a Recieve/Send/Security- exit.
So i guess, that it should be enough to follow the instructions and configure the exit in the QMgr.
But: Nothing happens this way. I`ve set the log options, but there is no log. And (of course) no copy in my copy-queue.
Otherwise, if i delete my mirrorq.dll, i cannot start the QMgr.
Without any error (except that nothing happens) it`s hard to find a solution. Any idea? |
|
Back to top |
|
 |
wschutz |
Posted: Tue Nov 08, 2005 3:43 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I suggest to start simple. See if you can get the sample that ships with MQ working:
ApiExitLocal:
Module=/opt/mqm/samp/bin/amqsaxe
Name=SampleAPIExit
Sequence=100
Function=EntryPoint
This sample can log all the calls, provided you set some environment variable first.
export MQAPI_TRACE_LOGFILE=/tmp/mqapi.trace
export MQAPI_TRACE_OPTIONS=18
If you get that working, then try mirrorq...just my 2 cents  _________________ -wayne |
|
Back to top |
|
 |
clindsey |
Posted: Tue Nov 08, 2005 7:48 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Code: |
/* 3. Configue the API EXIT */
/* From WebSphere MQ Services, right click on the Queue. */
|
This is incorrect. It should be Queue Manager, not Queue.
Charlie |
|
Back to top |
|
 |
|