}
}
for (RemotingConnection connection : connections)
{
ServerSession session = jmsSessions.get(connection.getID());
if (session != null)
{
JSONObject obj = new JSONObject();
obj.put("connectionID", connection.getID().toString());
obj.put("clientAddress", connection.getRemoteAddress());
obj.put("creationTime", connection.getCreationTime());
obj.put("clientID", session.getMetaData("jms-client-id"));
obj.put("principal", session.getUsername());
array.put(obj);
}
}
return array.toString();
}