9 Replies Latest reply on Apr 26, 2010 10:01 AM by Stuart Williamson

    Messages Not Always Delivered

    Stuart Williamson Novice

      I am currently experiencing an intermittent problem in an application that I have developed where messages are not always delivered to my MDB. My application is running in JBoss AS 4.2.3 with JBoss Messaging 1.4.4 installed and I am using an Oracle database. I have managed to recreate this problem in a more simple test application running in the same environment.

       

      My simple application behaves as follows:

       

      1. A JSP calls a session bean to put x messages on a queue
      2. An MDB consumes each message and creates an entry in the database to signify that it has received the message (EJB3 entity bean)
      3. The ID of the database entry created is then put on a second queue
      4. An MDB consumes each message from the second queue and updates the relevant database entry to signify that it has received the message

       

      On loading 100 messages onto the queue I generally find that 99 entries have been created in the database and that 98 of those entries have been updated. I.e. 99 messages were consumed by the first MDB and 98 messages were consumed by the second MDB. This is not always the case, sometimes both figures are 100, sometimes both are lower.

       

      Has anyone else experienced a similar poblem or does anyone have any suggestions for what I might be doing wrong?