Bug 1183915 - redelivery ResourceAdapter Config is not respected when defined in more than one config.
Summary: redelivery ResourceAdapter Config is not respected when defined in more than ...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.3.0
Hardware: All
OS: All
medium
high
Target Milestone: ---
: ---
Assignee: Chao Wang
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-20 08:21 UTC by Jay SenSharma
Modified: 2019-07-11 08:33 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-23 13:51:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
standaloneAMQ.xml (18.58 KB, application/xml)
2015-01-20 08:22 UTC, Jay SenSharma
no flags Details
MDBApplication.jar (2.55 KB, application/zip)
2015-01-20 08:23 UTC, Jay SenSharma
no flags Details
ActiveMQClient.jar (2.84 KB, application/zip)
2015-01-20 08:23 UTC, Jay SenSharma
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA AMQ-5613 0 None None None Never
Red Hat Issue Tracker WFLY-4269 0 Major Closed redelivery ResourceAdapter Config is not respected when defined in more than one config. 2017-06-22 06:11:11 UTC

Description Jay SenSharma 2015-01-20 08:21:54 UTC
Description of problem:
=======================
    If the MDB defines the "initialRedeliveryDelay" and "maximumRedeliveries" ActivationConfigProperty via annotation OR using "ejb-jar.xml" file, As well as if the "initialRedeliveryDelay" "config-property" is defined inside the <resource-adapter> section of standalone.xml then both are ignored, and it starts taking the default value of initialRedeliveryDelay for Activemq resource adapter as 1 Second see [1]

[1] http://activemq.apache.org/redelivery-policy.html



Version-Release number of selected component (if applicable):
============
JBoss EAP 6.3.0

How reproducible:
Steps to Reproduce:
1. Start ActiveMQ 5.9.0 broker. (or use Jboss A-MQ 6.1.0 which uses 5.9 activemq broker as default)

2. Get the ActiveMQ resource adapter 5.9.0 (behaviour is same in 5.8 rar as well) and deploy it on JBoss EAP 6.3

3. Edit the JBoss EAP 6.3 "resource-adapter" subsystem configuration as mentioned in the attached TestCase "standaloneAMQ.xml" file.

4. Start JBoss EAP 6.3 with the mentioned profile:
   ./standaone.sh -c standaloneAMQ.xml

5. Now deploy the MDB application attached "MDBApplication.jar" on EAP 6.3

6. Send some JMS Messages to "ActiveMQ" using the Test Client attached: "ActiveMQClient.jar"




Actual results:
===============
 - Neither the <config-property> defined in the resource-adapter section is working nor the MDB defined ActivationConfig properties.


Expected results:
===============
- The redelivery activation configuration defined in the MDB should have taken effect.
Additional info:

Comment 1 Jay SenSharma 2015-01-20 08:22:40 UTC
Created attachment 981770 [details]
standaloneAMQ.xml

Comment 2 Jay SenSharma 2015-01-20 08:23:04 UTC
Created attachment 981771 [details]
MDBApplication.jar

Comment 3 Jay SenSharma 2015-01-20 08:23:21 UTC
Created attachment 981772 [details]
ActiveMQClient.jar

Comment 4 Jay SenSharma 2015-01-20 08:55:45 UTC
If we uncomment the "maximumRedeliveries" and "initialRedeliveryDelay" @ActivationConfigProperty in the MDB  then the "maximumRedeliveries" defined in MDB @ActivationConfigProperty works as expected, but the "initialRedeliveryDelay"  goes back to 1 second which is default for the activemq resource adapter:

http://activemq.apache.org/redelivery-policy.html

Comment 16 Carlo de Wolf 2015-03-23 13:51:53 UTC
Upstream issue filed at https://issues.apache.org/jira/browse/AMQ-5613

Comment 17 JBoss JIRA Server 2015-06-07 06:51:16 UTC
Jay Kumar SenSharma <jsenshar> updated the status of jira WFLY-4269 to Closed


Note You need to log in before you can comment on or make changes to this bug.