Why might RvdProxy.getServices() incorrectly return an empty Array?
Posted
by butterchicken
on Stack Overflow
See other posts from Stack Overflow
or by butterchicken
Published on 2010-03-11T18:08:05Z
Indexed on
2010/04/07
8:03 UTC
Read the original article
Hit count: 312
The following code snippet attempts to create a Tib DaemonManager
connecting to a particular rvd, and then query for that rvd's services.
public static void main(String[] args) throws RuntimeException {
DaemonManager daemonManager = new DaemonManager("http://foo.com:7580");
if(daemonManager.getDaemonType() == DaemonManager.RVD) {
DaemonProxy daemonProxy = daemonManager.getDaemonProxy();
final RvdProxy rvdProxy = (RvdProxy) daemonProxy;
Service[] services = rvdProxy.getServices();
System.out.println(services.length); //prints 0
for (Service service : services) {
System.out.println(service.getNetwork());
}
}
}
This prints zero, even though the web interface for this rvd lists multiple available services. Why might this happen?
The daemon I am connecting to is running v 7.5.1 of the software, and the rvconfig.jar
that I am using is from v 7.5.1 as well.
Is there a gotcha when using Tibco's DaemonManager that is causing me to come unstuck?
© Stack Overflow or respective owner