|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Invoking a Program by UPES |
« View previous topic :: View next topic » |
Author |
Message
|
EggSalad |
Posted: Fri Jun 20, 2003 7:17 am Post subject: Invoking a Program by UPES |
|
|
 Newbie
Joined: 09 May 2003 Posts: 2
|
There is a lot of good information on this site on this topic unfortunately I am more confused than ever. I have looked at these topics among others:
http://www.mqseries.net/phpBB2/viewtopic.php?t=9108
http://www.mqseries.net/phpBB2/viewtopic.php?t=9028
http://www.mqseries.net/phpBB2/viewtopic.php?t=3700
I cannot get a Workflow to launch a my program. For the sake of figuring this out I have a process that is a single program activity which points to a program defined as Notepad.exe. Eventually I want to run java classes but I am not there yet. I have done the following:
1. Created an MQSeries queue and queue manager for use in the UPES config in buildtime.
2. Created a UPES in buildtime pointed to that queue and queue manager
3. Created a program and specified notepad.exe as the file and "Can run unattended"
4. Selected this program in my program activity, selected my UPES under the Execution tab, Selected automatic under the start tab.
5. I start the process and see the program activity in "running" state.
6. I see the XML message on my MQSeries queue, but nothing happens.
Things I have not done, do not know how to do or may have done incorrectly:
1. It may be that I do not have my triggering options on the queue set correctly.
2. I have not done anything special to start my execution server but I see some discussion of this in the above posts and think it may be relevant, Can anyone explain?
Other point for consideration:
1. Another member of my team (who is conveniently on vacation for 2 weeks) explained to me that we would have one UPES for each MQSeries queue for each program that could be run from Workflow. The impression he gave me was that doing this would result in our programs being invoked when a message landed on the queue. He built a "UPESService" java class with methods getMessage() and putMessage() which take the queue and queue manager names as input and he said this could be used from our java classes. He said it needed some work (he put it together practically on his way to the airport) but for now getMessage would return us the XML message as a string and we could get input container data that way.
With this information can anyone help me with getting programs to run? I feel that I must not be doing something very simple. Thanks in advance. |
|
Back to top |
|
 |
mphartman |
Posted: Fri Jun 20, 2003 9:11 am Post subject: |
|
|
Newbie
Joined: 19 Jun 2003 Posts: 7 Location: Iowa
|
Your colleague is on the right track. Check out the WA05 SupportPak for MQWF at
http://www-3.ibm.com/software/integration/support/supportpacs/individual/wa05.html
to get a head start and to hopefully understand UPES' more.
Basically, any program activity slated to be run by a UPES will, at runtime, have a XML-formatted message put to a queue you define and create. It's up to you to develop a program that's basically a MQ (not MQWF) client. That "listener" will open a connection to that queue and wait for a message from MQWF to arrive. When it does, that's your signal to do something; whatever you want to accomplish at that activity. It won't actually invoke notepad.exe but your listener can read that you set "notepad.exe" and it could run it. The PEA is better suited for actually launching programs.
Hope that helps. |
|
Back to top |
|
 |
jmac |
Posted: Sat Jun 21, 2003 6:13 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
If you are seeing your activity in a running state, then your program has received the message. If it is staying in a running state indefinitely, then it is not sending the appropriate Response message.
I would suggest that this is most likely what is happening, you get the message, and then you either never do a put to the responseQ/QM or you put an improperly formatted message. If you are doing the put, then look in fmcsys.log and see if there is an error message regarding your XML response message.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
workflowdude |
Posted: Fri Dec 26, 2003 9:16 pm Post subject: Problem in UPES |
|
|
Novice
Joined: 17 Nov 2003 Posts: 24 Location: US
|
Hi all,
I created a new UPES in buildtime pointing to a Queue Manager and Queue that I defined in MQ Series.
I imported the Credit Request sample provided with workflow and changed the last activity named "Accept Credit" to UPES pointing to the UPES i created. Changed the start type to "Automatic" and in the Program properties, selected the "program can run unattended" checkbox.
Exported the fdl and imported the same into runtime successfully. But when i run the process, it shows an error "InError" when this activity step is reached.
What am i doing wrong?
Please help |
|
Back to top |
|
 |
jmac |
Posted: Sat Dec 27, 2003 6:11 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
What is the message for InError? You should be able to see it in the fmcsys.log; OR if you have the Thin client installed you can look at the program properties or Monitor to see the in error message. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|