-
1. Re: Messages Not Always Delivered
gaohoward Mar 25, 2010 8:03 AM (in response to stuartw)I think you can use jmx-console to inspect message count on the queue to help further diagnosis.
Howard
-
2. Re: Messages Not Always Delivered
stuartw Mar 25, 2010 8:06 AM (in response to gaohoward)Hi Howard,
I should probably have said in my original post that I have had a look in the jmx-console and on my first queue there seems to be a message waiting (currently being delivered) but on my second queue there are not any messages waiting to be delivered.
Thanks,
Stuart
-
3. Re: Messages Not Always Delivered
gaohoward Mar 25, 2010 8:20 AM (in response to stuartw)Can you try jbm 1.4.5.GA ?
-
4. Re: Messages Not Always Delivered
stuartw Mar 25, 2010 8:27 AM (in response to gaohoward)I have tried 1.4.5.GA with my test application and see the same results
-
5. Re: Messages Not Always Delivered
gaohoward Mar 25, 2010 9:15 AM (in response to stuartw)Do you have a test to upload?
-
6. Re: Messages Not Always Delivered
stuartw Mar 27, 2010 5:34 PM (in response to gaohoward)Hi,
I have uploaded the application that I have been using to test this. The steps to recreate are as follows:
1. Deploy attached files
2. Open http://localhost/queue-test in a browser
3. Enter something in the value field
4. Submit the form
5. Run the following SQL: select count(*), state from message group by state;
If everything has worked then this shoud show that there are 100 entries in the PROCESSED state. Any time I run this I end up with around 98-99 entries in the PROCESSED state and 1-2 in the INITIAL state.
Thanks,
Stuart
-
queue-test-oracle-ds.xml 817 bytes
-
queue-test-destinations-service.xml 765 bytes
-
queue-test.ear 8.3 KB
-
-
7. Re: Messages Not Always Delivered
gaohoward Mar 28, 2010 10:30 PM (in response to stuartw)I saw in the queue-test-oracle-ds.xml you use OracleXADataSource as the data source class. JBoss Messaging doesn't need an XA data source to work with. You need a normal datasource instead. Please try using a normal oracle datasource.
Howard
-
8. Re: Messages Not Always Delivered
stuartw Mar 29, 2010 4:02 AM (in response to gaohoward)Hi Howard,
The datasource file that I have uploaded is the one used only by my application. Please find uploaded the datasource file that is used by JBoss Messaging, this uses a normal datasource. I have also uploaded my oracle-persistence-service.xml (from the directory jboss-messaging.sar) so that you verify that JBoss Messaging is indeed using this normal datasource.
Thanks,
Stuart
-
default-oracle-ds.xml 2.5 KB
-
oracle-persistence-service.xml 16.4 KB
-
-
9. Re: Messages Not Always Delivered
stuartw Apr 26, 2010 10:01 AM (in response to stuartw)I have now managed to discover that this is behaviour is cased by a bug in JBoss 4.2.3 (https://jira.jboss.org/jira/browse/JBAS-5801) and that a workaround is available. More details can be found in http://community.jboss.org/thread/49345.pdf