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 program to createand startprocessinstance

Post new topic  Reply to topic
 JMS program to createand startprocessinstance « View previous topic :: View next topic » 
Author Message
devin
PostPosted: Fri Dec 12, 2003 12:57 pm    Post subject: JMS program to createand startprocessinstance Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Dec 17, 2003 3:46 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

You should be able to do what you are trying to do:

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


You might want to check this thread.....

http://www.mqseries.net/phpBB2/viewtopic.php?t=8619&highlight=jms
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dsbailey
PostPosted: Tue Dec 30, 2003 11:00 am    Post subject: Reply with quote

Novice

Joined: 20 May 2002
Posts: 24

I created a JMS sample quite some time ago to create and start a process instance. It is posted out on:

http://www.developer.ibm.com/tech/sample_code_handler.pl?action=display&object=/tech/sample_code/mq/StartProcessJMS.java

It appears I worked around the user issue by making sure user fmc existed in the workflow database. See my notes in the prolog of the source code.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Dec 30, 2003 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dsbailey
PostPosted: Tue Dec 30, 2003 12:59 pm    Post subject: Reply with quote

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
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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » JMS program to createand startprocessinstance
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.