Announcement Announcement Module
Collapse
No announcement yet.
Question abour JmsInvokerProxyFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question abour JmsInvokerProxyFactoryBean

    I'm using org.springframework.jms.remoting.JmsInvokerProxyFa ctoryBean with ActiveMQ. I tried this example:

    http://static.springsource.org/sprin...l#remoting-jms

    When I performed a call to the generated proxy, the calling thread keeps bloqued. I didn't found the reason. But I realized that setting any the receiveTimeout parameter, it works ok. Even if a value is returned by the service.

    I took a brief look to the superclass, JmsInvokerClientInterceptor and I saw the following line:

    return (timeout > 0 ? consumer.receive(timeout) : consumer.receive());

    so, when timeout is 0 (the default value), it shoud be calling consumer.receive(). But it seems not to be working (at least in my tests).

    Somebody has had the same problem? Is it normal?

    Thanks

    Lautaro

  • #2
    A call to receive is always blocking until it receives something.
    Last edited by Marten Deinum; Aug 31st, 2009, 01:27 PM.

    Comment


    • #3
      Yes, but it keeps blocked forever, even if a message consumer has received the message and sent a response...

      Comment

      Working...
      X