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 » General IBM MQ Support » ACTIVEX and MQMD

Post new topic  Reply to topic
 ACTIVEX and MQMD « View previous topic :: View next topic » 
Author Message
jeeth_m
PostPosted: Thu Mar 10, 2005 10:34 am    Post subject: ACTIVEX and MQMD Reply with quote

Voyager

Joined: 21 Jan 2002
Posts: 93

Hi,
Customer is using Ativex Component initiated through .Net for sending the request.
They are having issues in sending the RACFID in MQMD UserIdentifier.
It always takes the loginID and pass it there.
Below is the code snippet.

public void Send(string data, string messageId, string replyToQueueName)
{
MQMessage message = NewMessage();
message.UserId = "RACFID"; // message.ReplyToQueueName = replyToQueueName;
messageId = messageId.PadLeft (24, '0');
message.MessageId = messageId;

// if (correlationId.Length == 24) message.CorrelationId = correlationId;

message.WriteString(data);

MQPutMessageOptions pmo = NewPutMessageOptions();

pmo.Options = Convert.ToInt32(MQ.MQPMO_SYNCPOINT);

GetQueue().Put(message, pmo);
GetQueueManager().Disconnect();
}
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
csmith28
PostPosted: Thu Mar 10, 2005 4:05 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Is the application putting to an MQManager on a Unix Server or a z/OS Mainframe.

In Unix, (not sure about z/OS) I believe the UserIdentifier is converted from Uppercase to Lowercase when the SRVCONN channel MCA gets it.

What return code are you seeing, 2035?
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
jeeth_m
PostPosted: Thu Mar 10, 2005 4:40 pm    Post subject: Reply with quote

Voyager

Joined: 21 Jan 2002
Posts: 93

Here messages are coming from a windows client to a windows MQ Server.
I am not getting any return code from these servers. But when message finally gets to MainFrame it gives me a 2035.
Here issue is applucation is seting it to RACFID lets say JEETH.
when when mesasge arrives at the server it has jmathew in the MQMD.UserIdetifier.
Thats the ID i use when i logon to the system.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
csmith28
PostPosted: Thu Mar 10, 2005 4:56 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

jeeth_m wrote:

when when mesasge arrives at the server it has jmathew in the MQMD.UserIdetifier.
Thats the ID i use when i logon to the system.


The only way I can think of that this would happen is if the value of MCAUSER is (jmathew) on the SVRCONN Channel you are using. If MCAUSER is anything but ( ) it Channels MCA will ignore the value of UserIdentifier when the MQMD is abended, but if that is the case and jmathew has proper authority locally to access the MQManager then it should work. Well, I think it should work.

Could it be that ActiveX is ignoring the value of UserIdentifier that you are trying to pass in the MQMD grabbing your login ID in it's stead?

I generally have a love/hate Microsoft. I love it because it's so messed up it provides a certain level of job security and I hate it because it's so messed up.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
JT
PostPosted: Thu Mar 10, 2005 8:12 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Whenever you alter a MQMD parameter that is part of the context information of the message, you must also specify either MQPMO_SET_IDENTITY_CONTEXT or MQPMO_SET_ALL_CONTEXT in the MQPutMessageOptions.

The UserIdentifier field is one of those parameters.
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 » General IBM MQ Support » ACTIVEX and MQMD
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.