ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Exit causes Error 2059

Post new topic  Reply to topic
 Exit causes Error 2059 « View previous topic :: View next topic » 
Author Message
MQKev
PostPosted: Mon Nov 07, 2005 2:24 am    Post subject: Exit causes Error 2059 Reply with quote

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
View user's profile Send private message
paulgroo
PostPosted: Mon Nov 07, 2005 8:32 am    Post subject: Channel type Reply with quote

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
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Mon Nov 07, 2005 8:39 am    Post subject: Reply with quote

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
View user's profile Send private message
MQKev
PostPosted: Mon Nov 07, 2005 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Nov 07, 2005 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
paulgroo
PostPosted: Mon Nov 07, 2005 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
wschutz
PostPosted: Mon Nov 07, 2005 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Mon Nov 07, 2005 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
MQKev
PostPosted: Tue Nov 08, 2005 3:19 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Tue Nov 08, 2005 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
clindsey
PostPosted: Tue Nov 08, 2005 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Exit causes Error 2059
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.