-
1. Re: ordering of messages
hchirino Aug 5, 2002 8:35 PM (in response to ashields)Search this forum.. this has been discussed before.
-
2. Re: ordering of messages
ashields Aug 6, 2002 6:14 AM (in response to ashields)Do you mean :
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ way of fixing this problem is to reduce the max >>number of session the MDB uses to 1.
>>
>>Regards,
>>Hiram
Sorry, I'm having trouble finding out how to do that, or is the answer that I shouldn't be trying to do something like this with an MDB?
Thanks -
3. Re: ordering of messages
danielj Aug 11, 2002 2:30 AM (in response to ashields)Finally resolved the same problem myself.
Have a look at the "Standard Message Driven Bean" config in standardjboss.xml. You have to set <container-invoker-conf> to 1. What you can do is copy this container config into your jboss.xml. Change the config name and maximum size to 1. And for any MDBs that require ordering change the configuration name to point to your new config.
Regards,
Dan -
4. Re: ordering of messages
schaefera Aug 12, 2002 5:01 AM (in response to ashields)Hi
I don't like this trick. The problem is that it only works when the JBoss configuration is set correctly because JMS spec. does not guarantee any order.
So I would change my MDB do deal with the problem instead of using a tricky workaround. A solution would be to store the 'out of order' messages in a DB (Hypersonic) and check when the first message is coming in if the second not already came in. This would enable your MDB to scale and work in any configuration.
Have fun - Andy -
5. Re: ordering of messages
cstone Aug 12, 2002 7:28 PM (in response to ashields)I am getting mesage ordering problems with a queue, EVEN WHEN NOT USING A MDB! If I use a simple JMS client program to send and receive messages via a queue, often the first few messages get switched order. This looks like a JBoss bug.
NOTE: Using JBoss 3.0.0 on Red Hat Linux.
NOTE: Same JBoss on Win2000 has not exhibited this issue.
I am cleanly closing the queue connection after the sends.
The test programs are attached for reference. -
6. Re: ordering of messages
rboston Aug 19, 2002 3:20 PM (in response to ashields)How many producers and consumers do you have??
I've got an app that has one consumer per producer and my messages through a queue are in order.
The only time I saw a problem I learned was my error with a selector and there was more than one consumer and the selector was NOT properly setup. -
7. Re: ordering of messages
rboston Aug 19, 2002 3:20 PM (in response to ashields)How many producers and consumers do you have??
I've got an app that has one consumer per producer and my messages through a queue are in order.
The only time I saw a problem I learned was my error with a selector and there was more than one consumer and the selector was NOT properly setup.