JoltGetApplicationCode Function

Action

Retrieves the application code (user return code in TUXEDO ATMI)returned by a specified service.

Include file

Jolt.bdh

Syntax

JoltGetApplicationCode( in hRemoteService : number ): number;

Return value

Application code that was returned by the specified service.

Parameter Description
hRemoteService Handle to a JoltRemoteService object that was created with JoltRemoteServiceNew

Example

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;

See also

Java: bea.jolt.JoltRemoteService class