[jboss-jira] [JBoss JIRA] (WFLY-4269) InitialRedeliveryDelay ResourceAdapter Config is not respected when defined in more than one config.

Jay Kumar SenSharma (JIRA) issues at jboss.org
Tue Jan 20 02:08:49 EST 2015


    [ https://issues.jboss.org/browse/WFLY-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033730#comment-13033730 ] 

Jay Kumar SenSharma commented on WFLY-4269:
-------------------------------------------

If we comment the MDB's following activation configuration properties then the <config-property>  defined in resource-adapter section  for maximumRedeliveries and initialRedeliveryDelay are respected properly.
{code}
           // @ActivationConfigProperty(propertyName = "maximumRedeliveries", propertyValue = "4"),
           // @ActivationConfigProperty(propertyName = "initialRedeliveryDelay", propertyValue = "7000"),
{code}

Example Output with above commented properties:
{code}
12:35:49,552 INFO  [stdout] (default-threads - 15) => Tue Jan 20 12:35:49 IST 2015	TestMDB Received Message >  Message - Hello One !!!Tue Jan 20 12:35:49 IST 2015
12:35:49,552 INFO  [stdout] (default-threads - 15) 	before mdc.setRollbackOnly()
12:35:49,552 INFO  [stdout] (default-threads - 15) 	after mdc.setRollbackOnly()
12:35:53,557 INFO  [stdout] (default-threads - 16) 
12:35:53,558 INFO  [stdout] (default-threads - 16) => Tue Jan 20 12:35:53 IST 2015	TestMDB Received Message >  Message - Hello One !!!Tue Jan 20 12:35:49 IST 2015
12:35:53,558 INFO  [stdout] (default-threads - 16) 	before mdc.setRollbackOnly()
12:35:53,559 INFO  [stdout] (default-threads - 16) 	after mdc.setRollbackOnly()
12:36:01,563 INFO  [stdout] (default-threads - 17) 
12:36:01,563 INFO  [stdout] (default-threads - 17) => Tue Jan 20 12:36:01 IST 2015	TestMDB Received Message >  Message - Hello One !!!Tue Jan 20 12:35:49 IST 2015
12:36:01,564 INFO  [stdout] (default-threads - 17) 	before mdc.setRollbackOnly()
12:36:01,564 INFO  [stdout] (default-threads - 17) 	after mdc.setRollbackOnly()
12:36:17,566 INFO  [stdout] (default-threads - 18) 
12:36:17,567 INFO  [stdout] (default-threads - 18) => Tue Jan 20 12:36:17 IST 2015	TestMDB Received Message >  Message - Hello One !!!Tue Jan 20 12:35:49 IST 2015
12:36:17,567 INFO  [stdout] (default-threads - 18) 	before mdc.setRollbackOnly()
12:36:17,567 INFO  [stdout] (default-threads - 18) 	after mdc.setRollbackOnly()
{code}

> InitialRedeliveryDelay ResourceAdapter Config is not respected when defined in more than one config.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-4269
>                 URL: https://issues.jboss.org/browse/WFLY-4269
>             Project: WildFly
>          Issue Type: Bug
>          Components: JCA
>    Affects Versions: 9.0.0.Alpha1
>         Environment: All
>            Reporter: Jay Kumar SenSharma
>            Assignee: Jesper Pedersen
>
> - If the MDB defines the "initialRedeliveryDelay" 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



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list