Detect bad attributes of the global-transaction element

This rule flags the transaction-timeout attribute of the global-transaction element in the ibm-ejb-jar-ext.xml file.

This attribute has been incorrectly documented in the documentation. It was listed as transaction-timeout when it was supposed to be transaction-time-out. WebSphere expects the attribute to be transaction-time-out. An application using the transaction-timeout attribute without the '-' will fail deployment in WebSphere versions 7.0 and greater.

When migrating from Version 6.1, an ibm-ejb-jar-ext.xml file with the following content will be flagged:

<?xml version="1.0" encoding="UTF-8"?>
...
<session name="SomeSession">
<global-transaction transaction-timeout="15"/>
...
</session>
...

The transaction-timeout attribute must be modified to transaction-time-out. The automated fix will modify the file as shown in bold in the following example:

<?xml version="1.0" encoding="UTF-8"?>
...
<session name="SomeSession">
<global-transaction transaction-time-out="15"/>
...
</session>
...