[jboss-jira] [JBoss JIRA] (JBJCA-930) WorkManager HintsContext.LONGRUNNING_HINT Treatment Not Spec Compliant
Jesper Pedersen (JIRA)
jira-events at lists.jboss.org
Wed Dec 5 15:17:21 EST 2012
[ https://issues.jboss.org/browse/JBJCA-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesper Pedersen resolved JBJCA-930.
-----------------------------------
Resolution: Done
> WorkManager HintsContext.LONGRUNNING_HINT Treatment Not Spec Compliant
> ----------------------------------------------------------------------
>
> Key: JBJCA-930
> URL: https://issues.jboss.org/browse/JBJCA-930
> Project: IronJacamar
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.13.Final
> Reporter: jim_b_o
> Assignee: Jesper Pedersen
> Fix For: 1.0.14.Final
>
>
> Spec says the value must be true or false...
> 11.6.1.2 Long-running Work instance Hint
> The resource adapter may use the String javax.resource.LongRunning, defined as a constant in HintsContext.LONGRUNNING_HINT, as the hintName to indicate that a Work instance might run for a long period of time (typically lasting throughout the lifecycle of the resource adapter instance) compared to regular tasks that have a shorter execution lifecycle. The value of the hint must be a valid boolean value (true or false).
> However the code simply checks for existence...
> 67 HintsContext hc = (HintsContext) wc;
> 68 if (hc.getHints().containsKey(HintsContext.LONGRUNNING_HINT))
> 69 {
> 70 isLongRunning = true;
> 71 found = true;
> 72 }
> Hence if 'false' is provided, the wrong outcome will result.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list