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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » JMS Message to XMLINPUTQ

Post new topic  Reply to topic
 JMS Message to XMLINPUTQ « View previous topic :: View next topic » 
Author Message
vennela
PostPosted: Thu Apr 24, 2003 2:23 pm    Post subject: JMS Message to XMLINPUTQ Reply with quote

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:

Code:
 QueueConnection  connection = factory.createQueueConnection("ADMIN", "password");


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.

Thanks
-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ratan
PostPosted: Thu Apr 24, 2003 2:58 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Quote:

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.

-Ratan.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » JMS Message to XMLINPUTQ
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.