ProxyGen question

Hi All,

I am trying to get this proxygen stuff working (the java side). I can actually connect to the appserver, but I seem to be getting stuck from there. The constructor for one of my classes is below:

public KillAgendaInfo(ProObject appObj, int ipKillAgendaNo)
throws Open4GLException, RunTime4GLException, SystemErrorException
{
m_KillAgendaInfoImpl = new KillAgendaInfoImpl(appObj, ipKillAgendaNo);
}

I have absolutely no idea what the ProObject type is. I can not seem to find any information about it etc. If anyone could please help it would be greatly appreciated.

Thank you in advance for any assistance offered.
Cya.
 

MurrayH

Member
I seem to remember that this is an actual ".p" file - there should be some other classes in Java??

waynesingh said:
Hi All,

I am trying to get this proxygen stuff working (the java side). I can actually connect to the appserver, but I seem to be getting stuck from there. The constructor for one of my classes is below:

public KillAgendaInfo(ProObject appObj, int ipKillAgendaNo)
throws Open4GLException, RunTime4GLException, SystemErrorException
{
m_KillAgendaInfoImpl = new KillAgendaInfoImpl(appObj, ipKillAgendaNo);
}

I have absolutely no idea what the ProObject type is. I can not seem to find any information about it etc. If anyone could please help it would be greatly appreciated.

Thank you in advance for any assistance offered.
Cya.
 
MurrayH said:
I seem to remember that this is an actual ".p" file - there should be some other classes in Java??

Hi Murray,

Firstly thank you for the quick response.

The problem is that I beleive I have to use this constructor as this is the AppObject, which in turn has a SunAppObject of KillAgendaInfoObj. So I think I need to make this call to start the program up persistently. I have tried non-persistent and got to about hte same area before I couldn't go any further, so I have tried to base this a bit closer to the example given in the Progress Documentation (Open Client Development).

Thanx anyway mate,
Cya.
 

kprdrgkk

New Member
Please see example:

Progress remote procedure Killagendainfo.p

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 dis 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
}
}
}

If you compile remote procedure as persistent 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.createPO_KillAgendaInfo(1,inth);
System.out.println(inth.getIntValue());
} catch (Exception e1) {
// ignore
}
}
}
 
kprdrgkk said:
Please see example:

Progress remote procedure Killagendainfo.p

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 dis 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
}
}
}

If you compile remote procedure as persistent 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.createPO_KillAgendaInfo(1,inth);
System.out.println(inth.getIntValue());
} catch (Exception e1) {
// ignore
}
}
}

Thanx kprdrgkk.

Work has me working on something else at the moment, but as soon as I get the chance I will try this mate.

Once again thank you very much mate,
Cya.
 
Top