Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using MQOO_SET_IDENTITY_CONTEXT and MQGMO_CONVERT in vb6

Status
Not open for further replies.

081106

Programmer
Jan 16, 2003
2
US
I develop an MQSeries + vb6 app in W2K to access a queue in OS/390 environment
(using IMS Bridge)

A couple month earlier I has successful developed a prototype
accessing an OS/390 queue via a NT queue manager. The prototype
puts an IMS request to a NT remote queue which was redirected to an IMS Bridge
queue. The IMS Bridge queue triggers an IMS transaction and MQSeries in OS/390
puts the result to its remote ReplyToQ which forwards it to the NT queue and my
App get the result from the NT queue. I use MQOO_SET_IDENTITY_CONTEXT in MQOPEN
option to specify the authorized ID and when I use MQGMO_CONVERT in the MGGET
option to get my message convert to ASC.

Later a friend suggested that I could access the OS/390 queue directly
w/o the cost of an additional Queue Manager in NT.

The same prototype does not work directly with OS/390 queue.

1. MQOO_SET_IDENTITY_CONTEXT option in MQOPEN returns MQRC_NOT_AUTHORIZED

I get around the problem temporarily by create a new authorized user in my W2K and
slog with that ID to access MQSeries. But the MQGMO_CONVERT option does not work
any more.

Somehow my friend app accessing the same queue developed in Java has no problem
whatsoever. He did not even have to use either MQOO_SET_IDENTITY_CONTEXT or
MQGMO_CONVERT and his message is returned in ASC.

Thanks for your help.

L Tran.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top