Posted: Thu Apr 24, 2003 2:23 pm Post subject: JMS Message to XMLINPUTQ
Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
I have used a JMS application to put an XML message (in MQHRF2 format) to XMLINPUTQ to create and start a process instance. The process starts OK but the problem is:
The MQMD userid value.
MQ picks up this value as the user-id under which the app is running.
There is no way to set this field explicitly in JMS.
The workaround for this is (I have found this in this forum and this is the only workaround I have found) to specify the user-id and password while creating the QueueConnection like this:
We can give whatever password we need and no authentication is done.
THE PROBLEM:
The user-id that we specify in the line above should be defined in OS (atleast this is the case in UNIX systems). Even if I client connect from a Windows box and try to PUT a message on the QMGR on UNIX, that user-id should be existing on the UNIX box. It also should have proper MQ authorities.
Having the users in MQWF itself is a pain. Think of having all the users defined in an OS level.
I wish the XML message that we send to XMLINPUTQ should have another element where we can specify the USER-ID of the process starter.
OR may be we can use WMQI to change the MQMD.userId filed.... but that's extra work though.
If anybody knows any other way please let me know.
Having the users in MQWF itself is a pain. Think of having all the users defined in an OS level.
Tell me about it.
I believe you can have other workarounds depending on what you are trying to achieve. My quick solution would be to send in the UserID you want using the DataStrucutures and use 'From Container' option if you want to assign the user to any activity.
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