getVersion()

Retrieves the version of the connector.

Syntax

public String getVersion();
 

Parameters

None.

Return values

A String indicating the version of the connector's application-specific component.

Exceptions

None.

Notes

The connector framework calls the getVersion() method to retrieve the version of the connector. The getVersion() methods is usually called as part of the connector initialization process, from within the agentInit() method. The connector framework also calls the getVersion() method to get a version for the connector.

Important:
The CWConnectorAgent class provides a default implementation for the getVersion() method. Therefore, you can either use this default implementation or override the method to implement your own versioning mechanism.

The CWConnectorAgent class provides a default implementation for the getVersion() method, which retrieves the package name from standard class information. It then gets the version from the manifest file present in the package.

Copyright IBM Corp. 1997, 2003