Results 1 to 2 of 2

Thread: SynchronousChannel and transactions

  1. #1
    Join Date
    Feb 2005
    Posts
    47

    Default SynchronousChannel and transactions

    From http://jira.springframework.org/browse/INT-85:

    "The M3 release provides a new SynchronousChannel so that a handler can execute within the sender's thread, and a pollable-source can be polled within a receiver's thread. These enable transactions to propagate from a sender or receiver to the handler or pollable-source respectively. "

    What does this mean? Is there an example available?

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

    Default

    Magnus,

    Currently, the only examples of SynchronousChannel are the test cases: SynchronousChannelTests and SynchronousChannelSubscriptionTests.

    In M3, this is basically a "preview" feature and may be changing considerably for M4. That's the reason that it was not documented in any detail. The general idea is to support sending and receiving with a single-threaded model rather than always having a sender and receiver in different threads. Even the name of the class is up for debate however, since the SynchronousChannel (and SynchronousQueue) are typically used to describe direct-handoff scenarios where there are still separate threads but either side will block until a handoff is made.

    Mark

Posting Permissions

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