JoltUnsubscribeAll Function

Action

Unsubscribes all event subscriptions in a specified session.

Include file

Jolt.bdh

Syntax

JoltUnsubscribeAll( in hSession : number ): number;

Return value

Number of subscriptions deleted.

Parameter Description
hSession Handle to a JoltSession object that was created with JoltSessionNew

Example

var
  hSession, hSessionAttr, hUserEvent: 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", "", "");
    hUserEvent := JoltUserEventNew("*", NULL, hSession);
  end TInit;
 
  transaction TShutdown
  begin
    JoltUnsubscribeAll(hSession);
    JoltEndSession(hSession);
    JoltFreeObject(hUserEvent);
    JoltFreeObject(hSession);
    JoltFreeObject(hSessionAttr);
  end TShutdown;

See also

Java: bea.jolt.JoltUserEvent class