private void printAttributes() {
Globals.stdOutPrintln(ar.getString(ar.I_OBJMGR_HELP_ATTRIBUTES1));
// Create a Destination administered object to get it's properties
AdministeredObject obj = (AdministeredObject)new com.sun.messaging.Topic();
Properties props = obj.getConfiguration();
ObjMgrPrinter omp = new ObjMgrPrinter(2, 6);
String[] row = new String[2];
for (Enumeration e = obj.enumeratePropertyNames(); e.hasMoreElements();) {
String propName = (String)e.nextElement();
try {
row[0] = " " + propName;
row[1] = obj.getPropertyLabel(propName);
omp.add(row);
} catch (Exception ex) {
}
}
omp.print();
Globals.stdOutPrintln(ar.getString(ar.I_OBJMGR_HELP_ATTRIBUTES2));
// Create a ConnFactory administered object to get it's properties
obj = (AdministeredObject)new com.sun.messaging.TopicConnectionFactory();
props = obj.getConfiguration();
ObjMgrPrinter omp2 = new ObjMgrPrinter(2, 6);
for (Enumeration e = obj.enumeratePropertyNames(); e.hasMoreElements();) {
String propName = (String)e.nextElement();
try {
row[0] = " " + propName;
row[1] = obj.getPropertyLabel(propName);
omp2.add(row);
} catch (Exception ex) {
}
}
omp2.print();