Results 1 to 6 of 6

Thread: Difference between PollableChannel and SubscribableChannel

  1. #1

    Default Difference between PollableChannel and SubscribableChannel

    hello what is difference between PollableChannel and SubscribableChannel?

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    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

  3. #3
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

  4. #4

    Default

    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)

  5. #5
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    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

  6. #6

    Default

    Thank you. Now I got it.

Tags for this Thread

Posting Permissions

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