Clears all input/output data of a Jolt object. This function is provided to clear data of both JoltSessionAttributes and JoltRemoteService objects.
Jolt.bdh
JoltClear( in hJolt: number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hJolt | Handle to a JoltSessionAttributes or JoltRemoteService object that was created with JoltSessionAttributesNew or JoltRemoteServiceNew, respectively |
var hSession, hSessionAttr, hRemoteService: number; dcltrans transaction TMain 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", "", ""); hRemoteService := JoltRemoteServiceNew("SERVICE1", hSession); JoltCall(hRemoteService); JoltClear(hRemoteService); hRemoteService := JoltRemoteServiceNew("SERVICE2", hSession); JoltCall(hRemoteService); JoltEndSession(hSession); JoltFreeObject(hRemoteService); JoltFreeObject(hSession); JoltFreeObject(hSessionAttr); end TMain;
Java: bea.jolt.JoltSessionAttributes class, bea.jolt.JoltRemoteService class