Is there a CLI way to show JDBC Glassfish connection pool information?

The only relevant command I found is:

NAME list-jdbc-connections-pool - lists all JDBC connection pools

EXAMPLES This example lists existing JDBC connection pools.

asadmin> list-jdbc-connection-pools sample_derby_pool __TimerPool Command list-jdbc-connection-pools executed successfully. 

I want to display information about a specific connection pool. For instance:

asadmin desc-jdbc-connection-pool sample_derby_pool

name: sample_derby_pool
databaseName: oracle
portNumber: 1521
serverName: test
User: testUser
...

+4
source share
1 answer

Try to run:

asadmin get * | more

The above command will display the GlassFish all attributes. Put it in grep to get only the pool properties that interest you:

asadmin get * | grep TimerPool

Hope this helps.

+7
source

Source: https://habr.com/ru/post/1390188/


All Articles