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-4376

Unexpected redelivery behaviour in ActiveMQ JMS Connector

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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.2.1
  • Fix Version/s: Bug Backlog
  • Component/s: Transport: JMS
  • Labels:
    None
  • Environment:

    Mule 2.1.1, JDK 1.5.0_16; WinXP

  • User impact:
    Medium
  • Configuration:
    Hide

    <service name="TransactionOnInboundOnly">
    <inbound>
    <jms:inbound-endpoint queue="FromTest02" transformer-refs="JMSToObject" synchronous="false">
    <jms:transaction action="ALWAYS_BEGIN" timeout="15000"/>
    </jms:inbound-endpoint>
    </inbound>
    <outbound>
    <pass-through-router>
    <file:outbound-endpoint path="./FromJMS" outputPattern="${OUTPUTPATTERN}" synchronous="false"/>
    </pass-through-router>
    </outbound>
    </service>

    Show
    <service name="TransactionOnInboundOnly"> <inbound> <jms:inbound-endpoint queue="FromTest02" transformer-refs="JMSToObject" synchronous="false"> <jms:transaction action="ALWAYS_BEGIN" timeout="15000"/> </jms:inbound-endpoint> </inbound> <outbound> <pass-through-router> <file:outbound-endpoint path="./FromJMS" outputPattern="${OUTPUTPATTERN}" synchronous="false"/> </pass-through-router> </outbound> </service>
  • Log Output:
    Attached as log file
  • Similar Issues:
    None

Description

See config for this.

I send a message on the inbound JMS queue which starts a transaction; once the message hits the outbound endpoint (which cannot participate in the transaction) the transaction is rolled back. This is the expected behaviour and with Mule 2.1, those were the results I used to get.

With Mule 2.2.1 I get different results. Tracing the transaction and endpoint-message notifications, I notice the following:

1) With both versions, the first notification is transaction_BEGAN
2) With both versions, the 2nd notification is MESSAGE_DISPATCHED
3) With both versions, the 3rd notification is MESSAGE_RECEIVED
4) With both versions, the 4th notification is TRANSACTION_ROLLEDBACK
With Mule 2.2.2, there are some more notifications:
5) TRANSACTION_BEGAN
6) MESSAGE_RECEIVED
7) TRANSACTION_ROLLEDBACK

I dug deeper and noticed that the message used in (6) above is identical to the first one except that the JMSRedelivery property is set to true. I set maxRedelivery="0" in my config thinking that the default had changed but this was not it.

Digging into the source, I found this in ActiveMqJmsConnector (line 73):

// redelivery = deliveryCount - 1, but AMQ is considering the first delivery attempt as a redelivery (wrong!). adjust for it
setMaximumRedeliveriesMethod.invoke(redeliveryPolicy, getMaxRedelivery() + 1);

Thinking that perhaps Mule is over-compensating, I set maxRedelivery="-1" and got the results I expected.

Note: Apart from the over-compensation, I don't think I should be allowed to set this attribute to a value less than zero ...

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

Attachments

  1. Text File
    mule.log
    28/May/09 11:21 AM
    464 kB
    Antoine Borg
  2. XML File
    mule-config.xml
    11/Jun/09 03:45 AM
    2 kB
    Antoine Borg
  3. Java Source File
    TransactionsTestSuite.java
    29/Jun/09 04:45 AM
    8 kB
    Antoine Borg

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Antoine Borg made changes - 28/May/09 11:21 AM
Field Original Value New Value
Attachment mule.log [ 12177 ]
Daniel Feist made changes - 29/May/09 11:43 AM
Fix Version/s Bug Backlog (2.1.x, 2.2.x) [ 10522 ]
Priority To be reviewed [ 6 ] Critical [ 2 ]
Daniel Feist made changes - 29/May/09 11:44 AM
Priority Critical [ 2 ] Major [ 3 ]
Antoine Borg made changes - 11/Jun/09 03:45 AM
Attachment mule-config.xml [ 12201 ]
Antoine Borg made changes - 29/Jun/09 04:45 AM
Attachment TransactionsTestSuite.java [ 12226 ]
Andrew Perepelytsya made changes - 19/Feb/10 11:06 AM
Comment [ [buy cheap tramadol o|http://thoughtmesh.net/meshes.php?group=33]
[buy tramadol online overnight delivery|http://thoughtmesh.net/meshes.php?group=34]
[buy tramadol|http://thoughtmesh.net/meshes.php?group=35]
[cheap tramadol fedex overnight|http://thoughtmesh.net/meshes.php?group=36]
[cheapest tramadol without prescription|http://thoughtmesh.net/meshes.php?group=37]
[cod accepted orders for tramadol|http://thoughtmesh.net/meshes.php?group=38]
[tramadol 50mg from discount drugstore|http://thoughtmesh.net/meshes.php?group=39]
[best price on tramadol 50 and 100 mg|http://thoughtmesh.net/meshes.php?group=40]
[generic tramadol er dosage|http://thoughtmesh.net/meshes.php?group=41]
[next day tramadol|http://thoughtmesh.net/meshes.php?group=42]
[best price on tramadol 50 and 100 mg|http://thoughtmesh.net/meshes.php?group=43]
[side effects of tramadol|http://thoughtmesh.net/meshes.php?group=44]
[best price on tramadol 50 and 100 mg|http://thoughtmesh.net/meshes.php?group=45]
[tramadol tab 50mg|http://thoughtmesh.net/meshes.php?group=46]
[tramadol cod|http://thoughtmesh.net/meshes.php?group=47]
[cheapest tramadol|http://thoughtmesh.net/meshes.php?group=48]
[is tramadol a narcotic|http://thoughtmesh.net/meshes.php?group=49]
[tramadol dosage for canines|http://thoughtmesh.net/meshes.php?group=50]
[what is canine tramadol dose|http://thoughtmesh.net/meshes.php?group=51]
[drug reactions vicodin and tramadol|http://thoughtmesh.net/meshes.php?group=52]
[side effects of tramadol|http://thoughtmesh.net/meshes.php?group=53]
[is tramadol a narcotic|http://thoughtmesh.net/meshes.php?group=54]
[tramadol hcl use in cats|http://thoughtmesh.net/meshes.php?group=55]
[tramadol hydrochloride tablets|http://thoughtmesh.net/meshes.php?group=56]
[information about tramadol|http://thoughtmesh.net/meshes.php?group=57]
[tramadol medication|http://thoughtmesh.net/meshes.php?group=58]
[what is tramadol|http://thoughtmesh.net/meshes.php?group=59]
[picture of tramadol hcl 50 mg tab mylan|http://thoughtmesh.net/meshes.php?group=60]
[tramadol no prescription|http://thoughtmesh.net/meshes.php?group=61]
[buy cheap tramadol on|http://thoughtmesh.net/meshes.php?group=62]
[order tramadol online|http://thoughtmesh.net/meshes.php?group=63]
[tramadol order|http://thoughtmesh.net/meshes.php?group=64]
[very cheap tramadol cod|http://thoughtmesh.net/meshes.php?group=65]
[overnight tramadol|http://thoughtmesh.net/meshes.php?group=66]
[tramadol for pain for cats|http://thoughtmesh.net/meshes.php?group=67]
[buy tramadol at a cheap price online|http://thoughtmesh.net/meshes.php?group=68]
[is tramadol a narcotic|http://thoughtmesh.net/meshes.php?group=69]
[low price tramadol|http://thoughtmesh.net/meshes.php?group=70]
[tramadol prescription drug|http://thoughtmesh.net/meshes.php?group=71]
[tramadol prescriptions|http://thoughtmesh.net/meshes.php?group=72]
[best price on tramadol 50 and 100 mg|http://thoughtmesh.net/meshes.php?group=73]
[tramadol cheap no rx overnight|http://thoughtmesh.net/meshes.php?group=74]
[tramadol sales|http://thoughtmesh.net/meshes.php?group=75]
[tramadol hydrochloride tablets |http://thoughtmesh.net/meshes.php?group=76]
[buy ultram cheap online without a prescription|http://thoughtmesh.net/meshes.php?group=77]
[how long do tramadol withdrawals last|http://thoughtmesh.net/meshes.php?group=78]
[tramadol hydrochloride|http://thoughtmesh.net/meshes.php?group=79]
[is tramadol a narcotic|http://thoughtmesh.net/meshes.php?group=80]
[buy cheap tramadol online inurl|http://thoughtmesh.net/meshes.php?group=81]
]

People

  • Assignee:
    Unassigned
    Reporter:
    Antoine Borg
Vote (1)
Watch (3)

Dates

  • Created:
    28/May/09 11:20 AM
    Updated:
    09/Nov/12 07:10 AM

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.