Register MBean when DataSource Resource type=javax.sql.XADataSource. Patch provided by Masafumi Miura. This commit also includes a follow up from trunk, r1829084