Columns are sorted alphabetically for CompositeType

6 views
Skip to first unread message

Andreas Lüdeke

unread,
Apr 4, 2014, 8:31:20 AM4/4/14
to jminix...@googlegroups.com
Hey,

i developed my own custom MBean using CompositeType and TabularTypes. When i try to view them with jminix the columns are sorted alphabetically.


private static final String[] itemNames = { a", "t", f", "5", "v", "b", "r" };

private static final CompositeType pageType = JMX.newCompositeType("name", "description", itemNames, itemDescriptions, itemTypes);

This results in a table with the following column order: a,b,f,r,t,v,5 or so.

Is this intended. Feels weared to me because the order in itemNames was intended from me. Or is it probably possible to define a strict order?

BR

Andreas
Reply all
Reply to author
Forward
0 new messages