How to get datasource name from JBoss EAP runtime?
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.