Announcement Announcement Module
Collapse
No announcement yet.
How to Poll messages from queue ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Poll messages from queue ?

    Hi, I am very new to spring and integration framework, I am trying to get a message through a queuechannel. The push onto the queue seems to work, but the poller never receives the message.

    Could anyone post a minimal code example on how to get this to work?

    the pusher and the poller is in different parts of the application, and the queue itself is defined in the spring context from xml as:
    <channel id="actionListChannel">
    <queue capacity="10"/>
    </channel>

    I then use references to this channel in my other beas, as:
    <bean id="outboundRequestHandler" class="theclass">
    <property name="channel" ref="actionListChannel"/>
    </bean>

    it seems that the channel object i get in these beans is correct, and have the same object id.

    Thanks
    /Robert

  • #2
    Originally posted by psychonauten View Post
    Hi, I am very new to spring and integration framework, I am trying to get a message through a queuechannel. The push onto the queue seems to work, but the poller never receives the message.

    Could anyone post a minimal code example on how to get this to work?

    the pusher and the poller is in different parts of the application, and the queue itself is defined in the spring context from xml as:
    <channel id="actionListChannel">
    <queue capacity="10"/>
    </channel>

    I then use references to this channel in my other beas, as:
    <bean id="outboundRequestHandler" class="theclass">
    <property name="channel" ref="actionListChannel"/>
    </bean>

    it seems that the channel object i get in these beans is correct, and have the same object id.

    Thanks
    /Robert
    I got it to work.

    Comment

    Working...
    X