Announcement Announcement Module
Collapse
No announcement yet.
Difference between PollableChannel and SubscribableChannel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Difference between PollableChannel and SubscribableChannel

    hello what is difference between PollableChannel and SubscribableChannel?

  • #2
    A PollableChannel provides a receive() method to be actively invoked by Polling Consumers, while a SubscribableChannel provides a subscribe() method so that Event Driven Consumers are invoked when a Message arrives.

    Does that clarify?
    -Mark

    Comment


    • #3
      EventDriven model = SubscribableChannel
      On Demand (where you are in control of demand) = PollableChannel.

      Comment


      • #4
        Thanks for reply but need more help in understanding.

        Is it like PollableChannel is synchronous messaging and SubsribeableChannel is asynchronous messageing

        receive() method in PollableChannel does not have argument. (PULL)
        but subscribe() method needs MessageHandler.(PUSH)

        Comment


        • #5
          Yes, you've got it. The receive() method actually returns a Message while the subscribe() method allows registration of a MessageHandler to be invoked asynchronously.

          You can find more information in the reference manual:
          http://static.springsource.org/sprin...reference.html

          Comment


          • #6
            Thank you. Now I got it.

            Comment

            Working...
            X