WMQ on Solaris or Windows have problems with the @MOMINIT Call.

WMQ on Solaris or Windows have problems with the @MOMINIT Call.

book

Article ID: KB0087940

calendar_today

Updated On:

Products Versions
TIBCO Service Gateway for WMQ (Open Systems) -
Not Applicable -

Description

Resolution:
Customers running a rule with "CALL @MOMINIT(nnnn,'MQSERIES');"
or checking the returncode from  "CALL @MOMINIT(nnnn,'');"

Environment:
============
o Windows or UNIX users trying to interface with MQSeries.

Symptoms:
=========
CALL @MOMINIT(1000, 'MQSERIES');  
Fails with Exception "MOM_INV_COMMAND" signaled

CALL @MOMINIT(1000, '');  
works but does not set the return code so residual data is left in the field.

Cause:
======
There are two bugs in the MOMCALLE external routine.
1) it does not expect 'MQSERIES' it only expects blanks on an init call.
2) It does not set the return code on the @MQSMAP_PORT map table.

Resolution:
===========
A CR has been raised to fix both problems but the workaround is

1) CALL @MOMINIT(1000, '');
2) Do not check the return code.  


TIBCO

Issue/Introduction

WMQ on Solaris or Windows have problems with the @MOMINIT Call.