Creates a new JoltRemoteService object. A JoltRemoteService object is used to perform a Request/Reply call. To make a call it is necessary to
instantiate an object of this class for the service,
set the parameters using the JoltSet functions,
send the request by calling the JoltCall function,
and to retrieve the parameters using the JoltGet functions.
Jolt.bdh
JoltRemoteServiceNew( in sServiceName : string, in hSession : number, in nVersion : number optional ): number;
Handle to the new JoltRemoteService object
Parameter | Description |
---|---|
sServiceName | Name of the service |
hSession | Handle to a JoltSession object the was created with JoltSessionNew |
nVersion | Version number required by JoltRemoteService constructors to check the compatibility between the server and the client (optional). This parameter is not required for the Jolt 1.1 client package. |
var hSession, hSessionAttr, hInquiry: number; dcltrans transaction TInit begin JavaSetOption(JAVA_VERSION, JAVA_V11); JavaSetOption(JAVA_HOME, "c:/jdk1.1.7"); JavaSetOption(JAVA_CLASSPATH, "c:/jdk1.1.7"); JoltInit(); hSessionAttr := JoltSessionAttributesNew(); JoltSetString(hSessionAttr, APPADDRESS, "//lab:8000"); hSession := JoltSessionNew(hSessionAttr, "", "ATM", "", ""); hInquiry := JoltRemoteServiceNew("INQUIRY", hSession); end TInit; transaction TShutdown begin JoltEndSession(hSession); JoltFreeObject(hInquiry); JoltFreeObject(hSession); JoltFreeObject(hSessionAttr); end TShutdown;
Java: bea.jolt.JoltRemoteService class