Author |
Message
|
devin |
Posted: Fri Dec 12, 2003 12:57 pm Post subject: JMS program to createand startprocessinstance |
|
|
Voyager
Joined: 27 Oct 2003 Posts: 82
|
Hi,
I am writing a JMS program to send an XML message to MQ Queue for createandstartprocessinstance.
The problem is with setting the userId field in MQMD.
JMS supposedly doesnt allow you to set the userid.
Has anybody tried this before?
Written a JMS program to send XML messages to MQWF?
Any clues??
i already checked out the sample code on IBM website.
Thanks,
Devin _________________ IBM Certified Solution Designer -
WebSphere MQ Workflow 3.4 |
|
Back to top |
|
 |
vennela |
Posted: Wed Dec 17, 2003 3:46 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
dsbailey |
Posted: Tue Dec 30, 2003 11:00 am Post subject: |
|
|
Novice
Joined: 20 May 2002 Posts: 24
|
|
Back to top |
|
 |
vennela |
Posted: Tue Dec 30, 2003 11:46 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
From the notes in the prolog of the source code
Code: |
/* The queue manager is set to FMCQM in this code. (MQWF default) */
/* The channel name is set to FMCQM.CL.TCP (MQWF default) */
|
What if the program is running in bindings mode instead of client mode? |
|
Back to top |
|
 |
dsbailey |
Posted: Tue Dec 30, 2003 12:59 pm Post subject: |
|
|
Novice
Joined: 20 May 2002 Posts: 24
|
I saw an append in the MQ JMS forum where it said you can use the createQueueConnection method where you pass in the userid and password and then this is the userid used for the message.
the function call is:
public QueueConnection createQueueConnection
(java.lang.String userName,
java.lang.String password)
throws JMSException
I have not tried this, but you might want to give it a shot.
(See the Using WebSphere MQ Java manual for details on this function call) |
|
Back to top |
|
 |
|