Creating multiple instances of a connector is in many ways the same as creating a custom connector. You can set your system up to create and run multiple instances of a connector by following these steps below:
You must create a connector directory for each connector instance. This connector directory should have the following structure, where connectorInstance uniquely identifies the connector instance:
ProductDir\connectors\connectorInstance
If the connector has any connector-specific meta-objects, you must create a meta-object for the connector instance. If you save the meta-object as a file, create the following directory and store the file in it:
ProductDir\repository\connectorInstance
The Adapter for DTS Protocol supports only one business object definition, whose structure is fixed and cannot be modified. The business object contains a DTS message within one of its parameters.
If your implementation will run multiple instances of the connector, you can create additional business objects with unique names so that each connector instance can subscribe to a single business object. However, you must make sure that any additional business objects conform to the structure of the supported business object definition. For more information, see Business object structure.
Files for the initial connector should be located in the following directory:
ProductDir\repository\initialConnectorInstance
Any additional files you create should be in the appropriate connectorInstance subdirectory of ProductDir\repository.
You create a configuration file (connector definition) for the connector instance in Connector Configurator. To do so:
To create a startup script:
dirname
You can now run both instances of the connector on your integration server at the same time.
For more information on creating custom connectors, refer to the Connector Development Guide for C++ or for Java.