You could use built in monitoring facility, Performance Monitoring Infrastructure(PMI) & Tivoli Performance Viewer(TPV), for this purpose. Go through the product document for more information on using the infrastructure.
For JMS, if you use SIBus/Websphere MQ, its always going to be XA. For JDBC, it depends on your driver type whether it is XA Datasource or PooledDatasource.