JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-5838

JMSMessageToObject fails to set Correlation-ID when passed as inbound property

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Patch submission Patch submission
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 3.1.2
  • Fix Version/s: 3.1.4 (EE only), 3.2.2 (EE only)
  • Component/s: Transport: JMS
  • Labels:
    • correlationid
    • jms
  • User impact:
    High
  • Similar Issues:
    None
  • Effort:
    XS

Description

The jms: object-to-jmsmessage-transformer fails to set the correlation ID if it is contained in the inbound scope instead of the outbound scope (which probably is when the correlation ID has been set in a previous service).

The class org.mule.transport.jms.transformers. AbstractJmsTransformer iterates through all outbound properties and sets the correlationID when it reaches MULE_CORRELATION_ID_PROPERTY. The correlation ID doesn´t necessarily have to be defined as outbound property (which can also be seen in org.mule. DefaultMuleMessage#getCorrelationId()). I´ll attach a suggestion for a fix of this bug.

As temporary workaround one can add the correlation ID to the outbound scope using the following message-property-transformer:
<message-properties-transformer scope="outbound">
<add-message-property key="MULE_CORRELATION_ID" value="#[mule:message.correlationId]" />
</message-properties-transformer>

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    AbstractJmsTransformer.java
    19/Oct/11 07:57 AM
    7 kB
    Tarik Osman
  2. Text File
    AbstractJmsTransformer.patch
    19/Oct/11 07:57 AM
    2 kB
    Tarik Osman
  3. Hide
    Zip Archive
    testcase-5838.zip
    04/Nov/11 08:37 AM
    2 kB
    Tarik Osman
    1. File
      META-INF/MANIFEST.MF 0.1 kB
    2. XML File
      test/resources/integration/jms-5838.xml 3 kB
    3. XML File
      test/resources/.../connector-jms-5838.xml 1 kB
    4. Java Source File
      test/java/.../Jms5838TestCase.java 1 kB
    Download Zip
    Show
    Zip Archive
    testcase-5838.zip
    04/Nov/11 08:37 AM
    2 kB
    Tarik Osman

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Transition Time In Source Status Execution Times Last Executer Last Execution Date
Open Open Closed Closed
111d 6h 4m 1 Stephen Fenech 07/Feb/12 12:59 PM
Closed Closed Reopened Reopened
7d 19h 45m 1 Pablo Kraan 15/Feb/12 08:45 AM
Reopened Reopened Closed Closed
24s 1 Pablo Kraan 15/Feb/12 08:45 AM

People

  • Assignee:
    Stephen Fenech
    Reporter:
    Tarik Osman
Vote (1)
Watch (3)

Dates

  • Created:
    19/Oct/11 07:55 AM
    Updated:
    15/Feb/12 08:45 AM
    Resolved:
    15/Feb/12 08:45 AM

Time Tracking

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

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.