Accessing TaublarData from javascript

28 views
Skip to first unread message

Ivan Varghis

unread,
Jan 27, 2016, 7:52:58 AM1/27/16
to node-java
Hi node-java team,

I had a query on how we can access TabularData from node-jmx  code. Would you very helpful if someone can answer it.

I believe node-jmx internally uses node-java for accessing java datatypes.

I am trying to  query the jvm for the following but facing a challenge on how to decode the tabular data return.
client.getAttribute("com.sun.management:type=HotSpotDiagnostic", "DiagnosticOptions", function(data) { 

Thanks in advance 
Regards
Ivan

Ivan Varghis

unread,
Jan 28, 2016, 8:30:21 PM1/28/16
to node-java
Solved the issue client.getAttribute("com.test.mgmt.mbeans:type=TestGroupMBean", "TestGroups",
function(data) { console.log(data.entrySetSync() + " "); var iterator = data.entrySetSync().iteratorSync(); while (iterator.hasNextSync()){ console.log("Value: "+iterator.nextSync().getValueSync().getSync('name')+ " "); }
Reply all
Reply to author
Forward
0 new messages