4 Replies Latest reply on May 19, 2003 7:50 AM by delboypass

    Message persistence

    delboypass

      I am trying to persist a message but think im failing miserably.

      Ive used the code
      //sending message code//

      qsend.send(ms,DeliveryMode.PERSISTENT,0,100000);

      //end of code//

      Im using hte default setup that comes with JBoss. In this reference it says that if you persist a message in the way such as above the message should be saved to the folder:
      homefolder/tmp/jbossmq

      Inside this folder, there are no objects.
      Is there anyway of making sure or check what messages are on the queue and where (if im persisting correctly) where the messages are persisting to.

      cheers del. (again any source code of the correct way to persist a message would be most helpful)

        • 1. Re: Message persistence
          delboypass

          Opps It does persist. Was looking in the wrong location.

          In the JBossmq-service.xml, I was looking at the Cache store that the messagecache is configured to. I now realise that this only works for non-persistant messages to save all memory-over-flow problems and that I should have been looking for the configuration of the
          Persistence manager where all persisted messages are sent instead..

          • 2. Re: Message persistence
            delboypass

            I did already write a response to this but has disappeared.
            Was looking at the wrong manager.
            Was looking at the relationship between the memorycache and the message manager instead of hte looking at the destination of hte persistance manager.

            • 3. Re: Message persistence
              delboypass

              I did already write a response to this but has disappeared.
              Was looking at the wrong manager.
              Was looking at the relationship between the memorycache and the message manager instead of hte looking at the destination of hte persistance manager.

              • 4. Re: Message persistence
                delboypass

                Ive replied to this a few times but dont know where they have gone.
                Basically looking at the wrong thing - messagemanager and cache manager. Wasnt in that directory. Needed to be looking at hte persistence manager and the directory bound to that.