Results 1 to 3 of 3

Thread: Any plans to support the ref attribute on the chain element?

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    12

    Default Any plans to support the ref attribute on the chain element?

    I'm currently finding myself having to duplicate chains across different sources, for example
    Code:
    <chain id="inboundAppAChain">
    set of adapters, transformers,etc
    </chain>
    <chain id="inboundAppBChain">
    same set of adapters, transformers, etc
    </chain>
    it would be nice to be able to say:

    Code:
    <chain id="chain" ... />
    <chain ref="chain" request-channel="inboundAppAChannel" />
    <chain ref="chain" request-channel="inboundAppBChannel" />
    or something equivalent?
    "I intend to live forever, or die trying" -- Groucho Marx

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

    Default

    If I understand the use-case correctly, the easiest thing to do in the near term would be to add a bridge, e.g.:
    Code:
    <bridge input-channel="inboundAppAChannel" output-channel="chainInput"/>
    
    <bridge input-channel="inboundAppBChannel" output-channel="chainInput"/>
    
    <chain input-channel="chainInput">
        ...
    </chain>
    Or, perhaps after looking at the problem this way, there might be a way to just re-use the "chainInput" in multiple other places as an output-channel?

  3. #3
    Join Date
    Oct 2010
    Posts
    12

    Default

    Yes, that solution solves my problem nicely, thanks!
    "I intend to live forever, or die trying" -- Groucho Marx

Posting Permissions

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