[jboss-jira] [JBoss JIRA] (WFLY-10347) Workmanager persistence is not in xsd order

Brian Stansberry (JIRA) issues at jboss.org
Tue May 8 16:13:00 EDT 2018


Brian Stansberry created WFLY-10347:
---------------------------------------

             Summary: Workmanager persistence is not in xsd order
                 Key: WFLY-10347
                 URL: https://issues.jboss.org/browse/WFLY-10347
             Project: WildFly
          Issue Type: Bug
          Components: JCA
            Reporter: Brian Stansberry
            Assignee: Stefano Maestri
            Priority: Minor


The JcaExtension.writeWorkManagers method is not ensuring that ordering of xml elements follows the xsd order. Persisters should follow the xsd as the ensures consistent output.

There are two issues:

1) The 'default-work-manager' element will only go first if the name of the first wm in the model is 'default'. If the one with that name is 2nd or later, the element will be below some 'work-manager' elements.

2) The short-running-threads element will only be before long-running-threads if the child resources happen to be ordered that way.  This one is easy to correct as the persister is using a for loop when it could simply be checking for the existence of the pool resources.

This kind of thing becomes more significant as we move to galleon for generating configs instead of hand coding them. The potential for resources getting added into the model in a different order than the xsd is higher.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list