We've recently started investigating the UniVerse java
interface. We're able to set up a connection, read
files, and execute simple commands, but I'm having a
problem getting on of my commands to run and return
any results.
I've copied a code snippet below that shows two LIST
statements being run through the UniCommand interface.
The first statement (which executes quickly at the
command line) returns the expected result text to the
UniCommand.response() method. The second statement
takes a few moments to run from the command line (but
runs properly - ES.POPULATION is a phrase in the AC
dict that specifies my desired population), and it
does not return the expected data to the response()
method. It also returns a 0 to status(), suggesting
that server has processed the command and has finished
with it.
Does anybody have any advice?
Rick
code below
------------------------------------------------
//first I try to run a simple query that
returns a result quickly
String stringSelect = "LIST AC 65432101 NAME
CURR.SERV ACC.STATUS TOXML ELEMENTS";
UniCommand uniSelectCommand =
uSession.command();
uniSelectCommand.setCommand(stringSelect);
System.out.println("EXECUTE: "+stringSelect);
uniSelectCommand.exec();
System.out.println
(uniSelectCommand.status());
System.out.println
(uniSelectCommand.response());
System.out.println
(uniSelectCommand.status());
//that works fine
//then I try to run a query that takes a bit
of time to return a result
stringSelect = "LIST AC ES.POPULATION TOXML
ELEMENTS";
uniSelectCommand.setCommand(stringSelect);
System.out.println("EXECUTE: "+stringSelect);
uniSelectCommand.exec();
System.out.println
(uniSelectCommand.status());
System.out.println
(uniSelectCommand.response());
System.out.println
(uniSelectCommand.status());
//this doesn't
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/