Skip to content

Instantly share code, notes, and snippets.

@soapplied
Last active December 19, 2015 09:29
Show Gist options
  • Save soapplied/5932846 to your computer and use it in GitHub Desktop.
Save soapplied/5932846 to your computer and use it in GitHub Desktop.
final Iterator it = transactionService.iterator();
while (it.hasNext()){
final ObjectName tranObjectName = (ObjectName) it.next();
if (null != tranObjectName){
String signature[] = null;
Object params[] = null;
Object result = adminClient.invoke(tranObjectName,
"printableListOfTransactions", params, signature);
if (result != null){
if (result instanceof String[]){
String[] temp = (String[])result;
for (int i=0; i<temp.length; i++){
System.out.println(temp[i]);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment