Retrieves the application code (user return code in TUXEDO ATMI)returned by a specified service.
Jolt.bdh
JoltGetApplicationCode( in hRemoteService : number ): number;
Application code that was returned by the specified service.
Parameter | Description |
---|---|
hRemoteService | Handle to a JoltRemoteService object that was created with JoltRemoteServiceNew |
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 TMain begin JoltSetInt(hInquiry, "ACCOUNT_ID", 10001); JoltCall(hInquiry); writeln(JoltGetApplicationCode(hInquiry)); end TMain; transaction TShutdown begin JoltEndSession(hSession); JoltFreeObject(hInquiry); JoltFreeObject(hSession); JoltFreeObject(hSessionAttr); end TShutdown;
Java: bea.jolt.JoltRemoteService class