How to get datasource name from JBoss EAP runtime?

Solution Verified - Updated -

Issue

I have a small monitoring tool that gathers runtime information from the application to detect infrastructure problems. It uses de JBoss CLI interface to get data. I tried the following sample CLI script which it returns a lot of useful information, but not the data source name (jta-data-source).

[domain@localhost:9999 /]  /host=master/server=server-one/deployment=sample.war/subsystem=jpa:read-resource(include-runtime=true,recursive=true,include-defaults=true)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content