Author |
Message
|
DragonFist |
Posted: Mon Feb 09, 2004 1:22 pm Post subject: Channel not starting |
|
|
 Acolyte
Joined: 11 Nov 2003 Posts: 52
|
Hi guys
I am trying to start a channel using runmqchl -c FMCQM.CL.TCP of type server connection. It is saying that the type of channel not suitable for action requested ( AMQ9502) and channel program ended abnormally (AMQ9999). I couldnt figure out wats the problem is . Also why its not suitable to start the channel. If anybody has faced this type of problem, please suggest me wats wrng with it. Any help would be appreciated.
Thx in advance _________________ DragonFist |
|
Back to top |
|
 |
vennela |
Posted: Mon Feb 09, 2004 1:33 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
runmqchl -c FMCQM.CL.TCP of type server connection |
You CANNOT start a SVRCONN channel. When an application client connects to a queue manager, then a SVRCONN channel will be automatically started by the queue manager.
It would be helpful why you are trying to do this. Looks like that's a channel created by workflow. What kind of problem are you facing |
|
Back to top |
|
 |
DragonFist |
Posted: Mon Feb 09, 2004 2:11 pm Post subject: |
|
|
 Acolyte
Joined: 11 Nov 2003 Posts: 52
|
you got it right vennela. I am trying to connect to workflow thru this channel. I wrote a jms program to connect to this qmanager(FMCQM) and put an xml message on EXEXMLINPUTQ. It is showing that it is connecting at the program level and putting the message on it. But when I go to the Queue and check the message its not there. So I am kinda confused here and tried to start the channel thinking its inactive thats y its not putting the message on the queue.
Wat I m trying to do is to put a message on EXEXMLINPUTQ so that workflow picksup up the message using UPES and start the process activity. I am a bit confused about the UPES concept too. Am i going right. Please let me know.. how to resolve this problem. _________________ DragonFist |
|
Back to top |
|
 |
vennela |
Posted: Mon Feb 09, 2004 2:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Your PUT is done successfully. Do not bother to start the SVRCONN channel.
Quote: |
But when I go to the Queue and check the message its not there. |
It will not be. Because as soon as you put a message to workflow's EXEXMLINPUTQ, it will be picked up by workflow and do whatever it needs to do.
There are two types of messages that you can put to workflow's EXEXMLINPUTQ
1. XML messages to create/start/suspend/terminate processes
2. XML messages that are replies to synchronous UPESs
There is a sample program out there on the repository for (1) above.
What is a UPES.
===========
A UPES is an MQ queue. You can setup an activity to be run by a UPES. When you do this, when the process come to that activity workflow (mind it not you) puts an XML message to that UPES queue. This message contains the data like process instance name I/P container data etc.
If you have defined the activity as an asynchronous activity, as soon as workflow PUTs the XML message the process goes to the next step. But if you have defined the UPES activity as a synchronous activity, workflow expects a reply. This reply you PUT to the EXEXMLINPUTQ
Quote: |
how to resolve this problem. |
There are couple of ways to know why your message is not able to do what you are intending to do.
1. Logon to the admin utility using fmcautil and while you keep it running send an XML message and the error will be spit out to the admin utilities console
2. Set the RESPONSE REQUIRED filed in the XML message to YES and set ReplyToQ and the error message will be sent to the ReplyToQ.
(look at the sample code if you don't know how to do this)
Hope things are clear.
Hope one of the moderators will move the post to the workflow forum so that you will get a better response. |
|
Back to top |
|
 |
DragonFist |
Posted: Mon Feb 09, 2004 4:24 pm Post subject: |
|
|
 Acolyte
Joined: 11 Nov 2003 Posts: 52
|
Thanx venny,
the code u have provided did really saved my life. Everything is working fine. Once again thanx for clearing my doubts. _________________ DragonFist |
|
Back to top |
|
 |
|