|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WebSphere WSAD MDB JMS : MDB fails after 20-30 messages |
« View previous topic :: View next topic » |
Author |
Message
|
toto |
Posted: Thu Jun 16, 2005 6:40 am Post subject: WebSphere WSAD MDB JMS : MDB fails after 20-30 messages |
|
|
 Newbie
Joined: 16 Jun 2005 Posts: 4 Location: France
|
Hi,
i'm using WebSphere Server 5.3 with WSAD and an MDB.
I also use OpenSTA to post many messages in the queue.
When i post 20 to 30 messages everything is normal
(the messages are read and put in a output queue using jms).
but with more messages, the MDB read only a few number of messages and then stops.
I don't have any errors anywhere so i'm perplex...
i have try different configurations (pool connection and session)
for the QM Factory ,and also the configuration of the port
but it didn't change anything.
any clue ?
Thanxs in advance
Franck |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Jun 16, 2005 7:47 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
What version of WMQ are you using (mqver command)? There were some fixes put in at CSD 4 and later to address MDBs that stopped receiving messages. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jun 16, 2005 2:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
As well check your messages:
Std behavior:
If the message causing an ejb exception (check std MDB exception causing rollback) cannot be reprocessed in the alloted number of times specified on the MDB you are in presence of a poison message and the MDB stops.
Let's see: an MDB with 10 instances on the queue.
100 messages on the queue. 1st message is a poison message.
1 MDB instance stops while 9 are processing
2 MDB instance stops while 8 are processing
3 MDB instance stops while 7 are processing
.....
9 MDB instance stops while 1 is processing
10 last MDB instance stops (number of retries exceeded)
You have successfully shut down all processing from that queue through MDB with just 1 poison message. Congrats !
To avoid this specify a backout count at least 1 less than the retry count.
Backout count is specified as a queue attribute. Retry count is an MDB attribute.
Enjoy  |
|
Back to top |
|
 |
toto |
Posted: Mon Jun 27, 2005 12:32 am Post subject: |
|
|
 Newbie
Joined: 16 Jun 2005 Posts: 4 Location: France
|
-> bower5932 : i have already patched my WMQ so wasn't that
-> fjb_saper : i checked all my messages and they were no poison messages.
The problem was elsewhere : we used a java class to open JMS connections but they were not closed at the end ...
sorry for such a easy mistake
franck |
|
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
|
|
|
|