|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WebClient custom command recieves message twice |
« View previous topic :: View next topic » |
Author |
Message
|
jmac |
Posted: Tue Feb 25, 2003 2:14 pm Post subject: WebClient custom command recieves message twice |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
I have a custom application using the web client. Under some circumstances (not predictable) I am getting 2 messages coming to my custom command, each being processed on a separate thread. Now of course since this command does a checkout followed by a checkin, one of these threads ALWAYS fails.
I see four possiblities for producing this problem:
1. My code causes the command to be invoked again. I have ruled this out.
2. The AppServer sends the command twice, I have ruled this out by reproducing the error with TomCat and WebSphere 4.0.
3. IE is somehow causing the problem.
4. The WebClient is causing the problem.
My question is: Has anyone ever run in to anything like this?
I must admit that I am currently at a loss as to what the problem could be, and I am quite certain that this is not a "workflow" problem, although the WebClient could be at fault. Basically I am fishing for ideas.
THANKS for any advice you can give. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
kriersd |
Posted: Wed Feb 26, 2003 10:46 am Post subject: |
|
|
 Master
Joined: 22 Jul 2002 Posts: 209 Location: IA, USA
|
Jmac
We too have noticed that some times we get multiple requests comming into the WF system if submitted by a web page. I believe this is a browser issue. Some how the submit button is processed twice or clicked twice. This activity would cause multiple requests to our custom servlet that is formulating a XML message to place on the EXEXMLINPUTQ to start a process. Many times a day we are seeing "Name Not Unique" errors in our reply queue. When we look at it we almost always find that the MQSeries message actually had two xml documents in the payload, both are exactly the same document.
Is this the same issue?
Dave _________________ Dave Krier
IBM WebSphere MQ Workflow V3.4 Solution Designer |
|
Back to top |
|
 |
jmac |
Posted: Wed Feb 26, 2003 11:06 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Dave:
I currently found the following:
I was using an image button with an onclick method. In the onclick method I had a submit.
I changed to using a type=submit and this seemed to fix the problem.
I had my custom command display at the beginning an indication of the thread that was being used, and I can definitely see that 2 messages are coming in.
I am currently thinking about switching to all submit buttons vs using the image. _________________ 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
|
|
|
|