4 Replies Latest reply on Oct 17, 2002 12:53 PM by superdave591

    Messages Lost After Restart (even with file persistence)

    sethladd

      I am using JBoss 3.0.2 on Linux w/ Sun JDK 1.4.0. I am using the default configuration, with the standard JBossMQ setup. It defaults to file persistence.

      I see JMS messages being persisted in the db/jbossmq/file/QUEUE.xxxxx directory. I then shutdown Jboss via Ctl-C on the console. I then start JBoss up, and look at the Queue Depth via JNDIView. It lists 0, even though there are messages in the file directory. Apps connecting to that queue also do not receive those old messages.

      Is this a known issue? Is there anything else I need to configure before I see messages after a server restart?

      Thanks for your tips!

        • 1. Re: Messages Lost After Restart (even with file persistence)
          superdave591

          This works on my machine. I am running 3.0.2 as well but I have jvm 1.4.1 installed... Does your message producer set the individual messages to non-persistant, I believe this overrides system and queue settings?

          David

          • 2. Re: Messages Lost After Restart (even with file persistence)
            sethladd

            Thanks for your quick reply. I installed 1.4.1, and that didn't seem to make a difference. I'm not explicitly setting any non-persist attribute on the message. The message is getting persisted, for I see the files created on the filesystem. They are even there after a restart. For whatever reason, the JBossMQ doesn't pick them up. In fact, that directory just starts to fill up with old messages.

            Do you know of any specific debug that I might look for? I'm sure this works, I'd just like it to work for me. :)

            Thanks!

            • 3. Re: Messages Lost After Restart (even with file persistence)
              sethladd

              Followup Solution:

              My queue names had '/' characters in it. It wasn't getting translated correctly in all places. After s/\//\./ I was OK, and my queues began to work after restarts.

              Thanks!

              • 4. Re: Messages Lost After Restart (even with file persistence)
                superdave591

                I am just getting started with JbossMQ myself. I sent you email that contained my jboss-service.xml and my destinations.xml as well. As you can see it really is just the stock example config from the all server.

                If you would like I can send you my jms client source that simply posts a text message containing the string "test message" 10000 times to the example queue testQueue.

                Now I am checking queuedepth from the jmx-console under jboss.mq or somewhere like that you can see the list of destination queues. I dont remember seeing qdepth in JNDIView.

                Also I did a graceful shutdown via the same JNDIView I havent done any sort of testing persistance through a crash or anything like that, but in my system they come back up fine. And if I deploy my simple consumer MDB after I do the restart it kicks off and goes to the task of processing the messages so I am definately sure that they are there.


                David