Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Loko
Creator II
Creator II

urls to request karaf console data through jolokia ?

Hello

I can see and manage my karaf instances , and my bundles (ESB routes) installed on them, using hawtio and accessing the mail http://mwyserver:8080/jolokia url.

But now I would like to do the same from scatch in an other web console I plan to develop.

Where can I find a list of urls and/or APIs to query my karaf consoles ? For instance, to retrieve the bundle-list, start/stop them, get contexts etc ...

The only example I found was on the jolokia website :

{

  "type":"read",

  "mbean":"java.lang:type=Memory",

  "attribute":"HeapMemoryUsage",

  "path":"used"

}

But it just return som system memory usage.

Regards

Arnaud

Labels (3)
2 Replies
Anonymous
Not applicable

Hello @Arnaud Geslin​ ,

Regarding to the below jolokia official document

The main focus of Jolokia is to allow easy access to JMX MBeans from everywhere

see https://jolokia.org/reference/html/jmx.html#jvm-spring-agent

 

seems it doesn't provide the way to access the karaf consoles.

As instead, you can start the karaf console by <karaf home>\bin\trun.bat, then use the karaf command (e.g. list/status/start/stop ...) to check /start/stop the karaf bundles as the below

0695b00000cgICpAAM.png

Loko
Creator II
Creator II
Author

Hello @Aiming Chen​ 

 

Yes I know how to use the console directly, but I need remote access via APIs, like hawtio does. Just need to know what are the urls. I guess they exists as Hawtio (or other tools) car manage karaf and Camel through Jolokia