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 » Command Server

Post new topic  Reply to topic
 Command Server « View previous topic :: View next topic » 
Author Message
basa_bbc
PostPosted: Fri Jan 07, 2005 2:57 am    Post subject: Command Server Reply with quote

Apprentice

Joined: 20 Jan 2004
Posts: 35

Hello,

We have developed an API exit, When we deploy it on the queue manager, the command server goes down. It does not come up at all. CAn any one help me out in this issue.

Regards,

bbc
Back to top
View user's profile Send private message
clindsey
PostPosted: Fri Jan 07, 2005 6:53 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

See if you are getting an FDC in the errors directory. Your exit may be abending. If so, you should add tracing to the exit to pin point where.
Your exit may be doing something that the command server just cannot support. If so, then do some filtering in your EntryPoint to prevent the exit getting loaded for the command server.

Here are a couple of suggestions. First, filter out all WMQ internal processes. Insert this code prior to the point where functions are registered.
Code:

   if (pExitParms->APICallerType == MQXACT_INTERNAL)
   {
      rc = MQXCC_SKIP_FUNCTION;
   }



Or filter on specific program patterns ....
pExitContext->ApplName contains the name. It varies by platform whether or not the full path is included, but you can test a program name against this and skip as well.

Code:

   /* these pgms do not identify themselves as internal */
   /* FormatName strips the leading path and extra trailing chars..... */
   pChr = FormatName(pExitContext->ApplName, sizeof(MQCHAR28));
   if (strncmp(pChr,"strmq",5)==0) rc = MQXCC_SKIP_FUNCTION;
   if (strncmp(pChr,"endmq",5)==0) rc = MQXCC_SKIP_FUNCTION;
   if (strncmp(pChr,"runmq",5)==0) rc = MQXCC_SKIP_FUNCTION;
   if (strncmp(pChr,"dspmq",5)==0) rc = MQXCC_SKIP_FUNCTION;


Charlie
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Apr 11, 2005 2:13 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

clindsey wrote:

Here are a couple of suggestions. First, filter out all WMQ internal processes. Insert this code prior to the point where functions are registered.
Code:

   if (pExitParms->APICallerType == MQXACT_INTERNAL)
   {
      rc = MQXCC_SKIP_FUNCTION;
   }

Charlie


Charlie, do you know exactly what would this filter out? Anything with amq*.exe? runmq*.exe? Less or more?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
clindsey
PostPosted: Tue Apr 12, 2005 6:09 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Peter, according to the documentation, MQXACT_INTERNAL is assigned to any process that is internal to the queue manager. AFAIK, there is no documented list, but I believe this is pretty much the amq* processes (oviously not sample pgms like amqsput) started by the queue manager.

Most of the programs that can be started from a command line are MQXACT_EXTERNAL and this includes strmqm, runmqsc and runmqtrm.

When I get some free time, I will try to experiment some and try to come up with a list.

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 » Command Server
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.