Hi,
Using Progress 10.2A I am trying to create a very simple Java to App Server program. Basically, a stub program to see if I can get all the connections to work.
The only example I could find was for the Accounting example for a persistent procedure. Maybe it's because my Java knowledge is lite (okay, non-existent), but the example is terrible. The documentation talks about the App Object and the SubAppObject. The SubAppObject is described but there is never an example or a description of WHY you would use it.
1) If anyone could tell me what the SubAppObject is for, I would be very grateful.
2) If there was a very simple example of passing the SQL result set to a temp table that would be a great help as well.
I created and ran a simple Progress program through the ProxyGen. No issues generating it or seeing the classes. I used Eclipse and pulled in the Progress classes and the ones I generated. No dice. I found the example below and I going to try to use it as a test.
thanks and regards,
Rich
DEF INPUT PARAMETER ipKillAgendaNo AS INT.
DEFINE OUTPUT PARAMETER pout AS INT.
pout = ipKillAgendaNo + 10.
AppObj and AppObjImp generated by proxygen is ProObject.
If you compile thiis procedure as nonpersistent using proxy generator yor client code is:
import com.progress.open4gl.*;
import java.io.*;
public class TestClient {
public TestClient() {
}
public static void main(String[] args) {
AppObj appObj = null;
IntHolder inth = new IntHolder();
try {
appObj = new AppObj("AppServer://localhost/tested" , "sysprogress", "ADMINISTRATOR", "");
appObj.KillAgendaInfo(1,inth);
System.out.println(inth.getIntValue());
} catch (Exception e1) {
// ignore
}
}
}
Using Progress 10.2A I am trying to create a very simple Java to App Server program. Basically, a stub program to see if I can get all the connections to work.
The only example I could find was for the Accounting example for a persistent procedure. Maybe it's because my Java knowledge is lite (okay, non-existent), but the example is terrible. The documentation talks about the App Object and the SubAppObject. The SubAppObject is described but there is never an example or a description of WHY you would use it.
1) If anyone could tell me what the SubAppObject is for, I would be very grateful.
2) If there was a very simple example of passing the SQL result set to a temp table that would be a great help as well.
I created and ran a simple Progress program through the ProxyGen. No issues generating it or seeing the classes. I used Eclipse and pulled in the Progress classes and the ones I generated. No dice. I found the example below and I going to try to use it as a test.
thanks and regards,
Rich
DEF INPUT PARAMETER ipKillAgendaNo AS INT.
DEFINE OUTPUT PARAMETER pout AS INT.
pout = ipKillAgendaNo + 10.
AppObj and AppObjImp generated by proxygen is ProObject.
If you compile thiis procedure as nonpersistent using proxy generator yor client code is:
import com.progress.open4gl.*;
import java.io.*;
public class TestClient {
public TestClient() {
}
public static void main(String[] args) {
AppObj appObj = null;
IntHolder inth = new IntHolder();
try {
appObj = new AppObj("AppServer://localhost/tested" , "sysprogress", "ADMINISTRATOR", "");
appObj.KillAgendaInfo(1,inth);
System.out.println(inth.getIntValue());
} catch (Exception e1) {
// ignore
}
}
}