Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Running procedures and user-defined functions : Running a persistent procedure (OpenProcObject) on an OpenAppObject
 

Running a persistent procedure (OpenProcObject) on an OpenAppObject

Once you create your com.progress.open4gl.javaproxy.OpenAppObject instance, you can run any persistent procedure on the connected AppServer using the following method on the OpenAppObject:
Syntax
public OpenProcObject createPO(String procName, ParamArray paramArray)
                   throws Open4GLException, RunTime4GLException,
                   SystemErrorException
procName
Specifies the name of the procedure to run, including any path relative to the PROPATH setting for the AppServer.
paramArray
Specifies a com.progress.open4gl.javaproxy.ParamArray that holds the parameters for the procedure. For more information, see Creatinga parameter array. A procedure with no parameters can also be run as persistent using an alternative syntax (see Running a single-run or singleton procedure (OpenProcObject) on an OpenAppObject), or the null value can be passed through paramArray.
This method returns a com.progress.open4gl.javaproxy.OpenProcObject, which you can use to run internal procedures and user-defined functions provided by the persistent procedure.