1 Reply Latest reply on Sep 28, 2007 9:53 PM by genman

    JMS Message Size Limitations

      All,

      I am running JBoss 4.0.3SP1 which has several Topics that are used by applications to asynchronously send data to one another. One application in particular is trying to send a sizable TextMessage over the topic. The size is about 30MB.

      I am seeing some exceptions on occasion that seem to be related to the message size. I've already switched out the persistence manager and the only way I can seem to get the exceptions to go away is to forcefully reduce the message size by breaking them up into many smaller ones which doesn't really follow our design.

      The question I have is, is there a natural limit to how big the messages can be? Is there a configurable limit?

      Thanks.

      Ben

        • 1. Re: JMS Message Size Limitations
          genman

          There's no imposed limit per-se, but JBossMQ is fairly inefficient, and the persistence overhead (depending on your DB) might be very high.

          A different way to handle large messages is by storing them on a network file system -- or web server -- and pass just the name of the file through JMS.