jbossas/jboss-as — pull request #3118 by jmesnil (2012-09-25 15:48:02+00:00)
Title: refactoring: reorder messaging XML writing

brian commented in #3102 that my patch did not respect the XSD order when I was writing the XML configuration for the messaging subsystem.

After checking the code, I found out a few similar issues.
This patch addresses all of them to ensure that the XML that it written in the same order than the XSD.
I also simplified the code by iterating on the ResourceDefinition's ATTRIBUTES array instead of marshalling explicitly the attributes one by one. This makes it simpler to keep in sync the attributes definitions with the XSD description.

This PR will conflict with #3102. I'll rebase it when the other PR is merged.