jFrenetic
jFrenetic

Reputation: 5542

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

The only relevant command that I found is:

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

EXAMPLES This example lists the existing JDBC connection pools.

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

What I want is to display the information about particular connection pool. Such as:

asadmin desc-jdbc-connection-pool sample_derby_pool

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

Upvotes: 5

Views: 3053

Answers (1)

John Clingan
John Clingan

Reputation: 3334

Try running:

asadmin get * | more

The above command will display all GlassFish attributes. Pipe it to grep to get just the pool properties you are interested in:

asadmin get * | grep TimerPool

Hope this helps.

Upvotes: 7

Related Questions