Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-4333

idempotent-receiver-router does not allow custom object store in XML configuration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 3.2.0
    • Component/s: Core: Configuration
    • Labels:
      None
    • User impact:
      Medium
    • Effort points:
      0.5
    • Similar Issues:

      Description

      Currently, the idempotent-receiver-router XML element allows only a fixed set of object stores to be configured: in-memory-store and simple-text-file-store. You cannot, however, configure a custom obejct store.

      Allow the following config:

      <idempotent-receiver-router idExpression="#[header:Message-Id]">
          <custom-object-store ref="xyz"/>
      or
          <custom-object-store class="xyz"/>
      <idempotent-receiver-router>
      

      As workaround you can use the custom-inbound-router element and configure it though spring properties like this:

      <custom-inbound-router class="org.mule.routing.inbound.IdempotentReceiver">
          <spring:property name="idExpression" value="#[header:Message-Id]"/>
          <spring:property name="store" ref="DatabaseObjectStore"/>
      </custom-inbound-router>
      

      (DatabaseObjectStore is a plain spring:bean in the config)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dirk Dirk Olmes
                Reporter:
                dirk Dirk Olmes
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/11

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 hours
                  5h
                  Remaining:
                  Remaining Estimate - 5 hours
                  5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified