|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Command Server |
« View previous topic :: View next topic » |
Author |
Message
|
basa_bbc |
Posted: Fri Jan 07, 2005 2:57 am Post subject: Command Server |
|
|
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 |
|
 |
clindsey |
Posted: Fri Jan 07, 2005 6:53 am Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Mon Apr 11, 2005 2:13 pm Post subject: |
|
|
 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 |
|
 |
clindsey |
Posted: Tue Apr 12, 2005 6:09 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|