3 Replies Latest reply on Jan 8, 2004 7:57 AM by adrian.brock

    Sending many messages causes lock?

    tesuji

      I've been experiencing problems with sending messages through JMS. I don't use any message-beans, simply the JMS API.

      First I was seeing problems that the JBoss server would freeze after some time. This seemed to have been caused by not closing the topic/subscriptions properly (which in turn was caused by users killing my application instead of closing it properly). I was surprised to see that improper behaviour of the client caused the server to have problems.

      Even when my clients now close the subscriptions properly, I still have problems. I have between 10 and 20 subscribers to a topic. When I publish a single message every now and then all is fine. When I send a dozen messages in a row however, sometimes my receiving clients lock. I can reproduce this in a test environment consistently.

      Does anyone have any idea why this happens? I see no errors or exceptions that give me any clue. I tried experimenting with different connection-factories but it didn't make any difference.

      Any help would be greatly appreciated.