Community articleinitialize method
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

This method initializes the Streaming API. You must call this method before calling any of the other methods.



This method initializes the Streaming API. You must call this method before calling any of the other methods.

Method

public static void initialize(
   String progName,
   String progVer,
   String apiVer
  ) throws UWIException;


Parameters

Table 1. Method parameters
ExpressionTypeDescription
progNameStringThe name of the application calling initialize. This name identifies the application within the PureEdgeAPI.ini file. It also sets the name that is returned by the XFDL applicationName function.
progVerStringThe version and build numbers of the application calling initialize. If the PureEdgeAPI.ini file has an entry for this version of the application, the application binds to the version of the API listed in that entry.
apiVerStringThe version number of the API that the application should use by default. If the PureEdgeAPI.ini file does not contain an entry for the specific application, the application binds to the API specified by this parameter.


Returns

Nothing if call is successful or throws a UWIException exception if an error occurs.

Notes

The Streaming API does not use any of the initialize parameters. However, you must include them if you want your application to be compatible with the Java Classic API.
Parent topic:
DTK class