Results 1 to 5 of 5

Thread: DefaultMessageListenerContainer does not receive messages after restart

  1. #1
    Join Date
    Feb 2008
    Posts
    5

    Default DefaultMessageListenerContainer does not receive messages after restart

    Hello

    Today I tried to connect 2 Spring-based apps with JMS (JmsTemplate and DefaultMessageListenerContainer). It works fine, but when I stop the receiving app and send some messages with the sending app, these messages will not be received after a restart of the receiving app. The subsequent messages will be received again, but not the messages in between.

    Any ideas where my messages are? I'm using ActiveMQ and Tomcat.

    Thanks
    Guido

  2. #2
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    10

    Default

    this sounds very much as if you haven't configuered persistent queues on ActiveQM.

  3. #3
    Join Date
    Dec 2007
    Posts
    17

    Default

    Do you see the messages in the Queue? What type of queues you are using? Permanent queues or Temporary Queues?

  4. #4
    Join Date
    Feb 2008
    Posts
    5

    Default

    Hello

    Thanks for the replies. Yes, I was sure it must be a simply issue ;-) Temporary Queues. Thought that ActiveMQ would use permanent queues by default.

    Guido

  5. #5
    Join Date
    Dec 2007
    Posts
    17

    Default

    It doen't matter what Active Mq is using. All it matters which queue you are using when you are calling .send(). If you are using Temporary Queues, you cannot retain the message. Only if you are having permanent queues and if have set the queue properties correctly, messages will be there in the queue. Do remember there is a bug in Spring 2.5.1. Even in case of success, message are still present in the queue. This bug is resolved in Spring 2.5.2

Posting Permissions

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