Results 1 to 4 of 4

Thread: messagelistnerContainer how does it process messages ?

  1. #1

    Default messagelistnerContainer how does it process messages ?

    suppose 10 clients sent messages at the same time to a queue how does the messagsListnerContainer process these messages ?
    does it process all messages in the queue at the same time or one after the other ?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    It depends....

    It depends on your settings if there is 1 thread consuming messages it is 1 of there are more it is more. It also depends on your JMS provider and how it handles messages although that is of lesser influence as the previous statement.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    Quote Originally Posted by Marten Deinum View Post
    It depends....

    It depends on your settings if there is 1 thread consuming messages it is 1 of there are more it is more. It also depends on your JMS provider and how it handles messages although that is of lesser influence as the previous statement.

    I want my message to be consumed immediately as it arrives to the queue.
    please tell me what in messagelistnerContainer should I configure for this behavior ? I am using activeMQ JMS provider

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    In theory that is what is happening depending on the load on the queye. If there are 1000 messages on the queue you don't want to process them ALL at once.. That is why you have a queue...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •