Hi,
here's how I get the hosts of an agent group in powershell. Should be easy to adopt for Java. I always wondered why I had to open an object to read it's properties, but never figured out if it's realy necessary. Maybe someone else knows a better way.
$openReq = New-Object com.uc4.communication.requests.OpenObject -ArgumentList 'ABC.XYZ', $true, $true;
$conn.sendRequestAndWait($openReq);
$obj = $openReq.getUC4Object();
$hosts = $obj.hosts();
while($hosts.hasNext()){
$hosts.next().getName();
}
I think the best way to do the other way round is to use SQL. But don't pin me down to that.
Matthias