How to check data source in JBoss?

I have a data source, how to check if this is normal? maybe somehow use jmx-console?

+7
source share
3 answers

If you just want to check if the data source is installed and any statistical information about it, you can read that bean: jboss.jca:name=DefaultDS,service=ManagedConnectionPool .

You can find such a bean for each data source, just change DefaultDS to the name of the data source.

+9
source

With JBoss 7, you can use the jboss-admin command-line tool to verify the data source. Run this line in jboss-admin (after setting up the JNDI name of the data source and an example assuming it is an XA data source):

/ subsystem = data sources / XA-source data = Java \: JBoss / data sources / XAOracleDS: test connection in the pool

More information can be found here: http://www.javalinux.it/wordpress/2011/07/14/how-to-create-an-manage-datasources-in-as7/

+4
source

Above did not work for me, but it worked -

Run this line in jboss-cli:

/ subsystem = data sources / XA-source data = JDBC \ / XAOracleDS: test connection-in-pool

+1
source

All Articles