Try OpenEdge Now
skip to main content
DataServer for Oracle
Configuring the DataServer : Configuring a self-service DataServer agent in the OpenEdge Appserver and Progress Application Server : Configuring the Progress Application Server agent as a self-service DataServer session
 

Configuring the Progress Application Server agent as a self-service DataServer session

To configure the OpenEdge AppServer agent as a self-service DataServer session:
1. Run the following command from Proenv to create an instance of Progress Application Server for OpenEdge:
pasman create -p <http portnum> -P <https portnum> -s <shutdown port> <instance name>
Note: In the above command –p port_num specifies the TCP port that listens for HTTP messages, the default is 8080, and –P port_num and specifies the TCP port that listens for HTTPS messages, the default is 8443. -s port_num specifies the TCP port used to stop an instance. instance name is the name of the Progress Application Server instance.
2. Edit the OpenEdge.Properties file located in the conf folder to update the agentStartupParam as follows:
agentStartupParam=-T "${catalina.base}/temp" -pf %WRKDIR%/ORA.pf
3. Create a schema holder as described in the section.
4. Start the schema holder using the Proserve command.
5. Start the Progress Application Server instance using the following command from the cd pasds/bin location to start :
tcman.bat start
6. To connect the client application to Progress Application Server, use one of the following methods:
a. To connect using APSV, use the following sample client.p file to connect to the multi-threaded agent:
DEFINE var a as INTEGER.
DEFINE var b as INTEGER.
DEFINE var outmsg1 AS INTEGER.
DEFINE VARIABLE iCount AS INTEGER NO-UNDO.
DEFINE VARIABLE happsrv AS HANDLE NO-UNDO.

CREATE SERVER happsrv.
IF happsrv:CONNECT("-URL http://<machine name>:< http portnum >/apsv -sessionModel Session-Managed") THEN
DO :
a = 10.
b = 2.
RUN test.p on happsrv(INPUT-OUTPUT a ,INPUT-OUTPUT b ,INPUT-OUTPUT outmsg1).
MESSAGE "Output Value: " outmsg1.
END.
happsrv:disconnect().
DELETE OBJECT happsrv.
b. To connect using REST, run the deployREST.bat and MultipleService.paar. Run the tcman.bat from http://localhost:8811/rest/MultipleOperationsService/test1/9
c. To connect using SOAP, start the tcman.bat from the cd pasds\bin location. Run deploySOAP.bat and GetCustName.wsm ROOT from the http://localhost:8811/soap/wsdl?targetURI=urn:getCustName. From the location, cd %WRKDIR% run the commands:
prowin -b -p ClientGetCustNameSSL.p
$PROEXE -b -p client.p -param find_first.p &
$PROEXE -b -p client.p -param find_last.p &
$PROEXE -b -p client.p -param for_each.p &
$PROEXE -b -p client.p -param for_first.p &

OUTPUT AT
C:\OpenEdge\WRK117\pasds\work
dataserv.lg at
C:\OpenEdge\WRK117\pasds\work
input files
C:\OpenEdge\WRK117\pasds\openedge