Mule
  1. Mule
  2. MULE-4333

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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:
      MULE-3410idempotent-receiver-router should have "disablePersistance" and "storePath" attributes in schema
      MULE-3587Custom ID stores on the IdempotentReceiver causes NullPointerException
      MULE-5814custom-object-store should allow referencing a Spring bean
      MULE-6101Object Stores should be allowed as global elements
      MULE-5190forwarding-catch-all-strategy doesn't work with idempotent-receiver-router
      MULE-3219No way to configure xstream mappings for <xml-to-object-transformer>
      MULE-6861Watermark / Binding object store items to flow variables
      MULE-3602MessagePropertiesTransformer XML config does not support renameProperties
      MULE-6400IdempotentRedeliveryPolicy does not rely on Mule object store manager to create an object store
      MULE-6423Allow properties to be treated as attributes in XML

      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)

        Issue Links

          Activity

          Dirk Olmes created issue -
          Dirk Olmes made changes -
          Field Original Value New Value
          Fix Version/s Bug Backlog (2.1.x, 2.2.x) [ 10522 ]
          Priority To be reviewed [ 6 ] Minor [ 4 ]
          Andrew Perepelytsya made changes -
          Labels 20-config
          Dirk Olmes made changes -
          Link This issue blocks MULE-5390 [ MULE-5390 ]
          Dirk Olmes made changes -
          Assignee Dirk Olmes [ dirk ]
          Dirk Olmes made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Labels 20-config
          Fix Version/s 3.2.0 [ 10942 ]
          Fix Version/s Bug Backlog [ 10522 ]
          Resolution Fixed [ 1 ]
          Ramiro Rinaudo made changes -
          Workflow Fixed Main Mule Workflow (after JIRA upgrade) [ 74322 ] Main Mule Workflow v1.0 [ 141005 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Development