The XAConnection is only used internally, since Application Servers must supply a javax.sql.DataSource to the clients, even when the underlying XAResource is enlisted in a Transaction. So the javax.sql.DataSource is the one we need to monitor anyway.
It's probably better to supply a Generic DataSource adaptor that handles only monitoring and cannot auto-scale on demand. This could probably be the best way to integrate AS DataSources.
The XAConnection is only used internally, since Application Servers must supply a javax.sql.DataSource to the clients, even when the underlying XAResource is enlisted in a Transaction. So the javax.sql.DataSource is the one we need to monitor anyway.
It's probably better to supply a Generic DataSource adaptor that handles only monitoring and cannot auto-scale on demand. This could probably be the best way to integrate AS DataSources.