Once you have written the connector's application-specific component, you must compile it into an executable format. This section provides information on how to compile and link a connector.
This section provides the following information:
To build the application-specific component of the connector, you need to include the connector header file, include any other required header files, compile the source files, and link CwConnector.lib to create the connector's dynamically loadable library (DLL).
On a Windows platform, use the MicroSoft Visual C++ 6.0 programming environment to build your connector, and follow these instructions:
DevelopmentKits\cdk\samples\sampleconnector\include
DevelopmentKits\cdk\ConnectorVersion.rc
The Version window uses the files ConnectorVersion.rc and generic_include\CxResourceVersion.h, which are shipped with the CDK. You need to define the ConnectorVersion.h file for your connector.
ProductDir\DevelopmentKits\cdk\lib\Debug\CwConnector.lib
ProductDir\DevelopmentKits\cdk\lib\Release\CwConnector.lib
By convention, connector DLL files are named to match the connector's unique name. This connector name uniquely identifies the connector. For more information, see The connector definition name.
For example, for a C++ connector with a connector name of MyCPP, the name of its DLL is:
MyCPP.dll
Use the MicroSoft Visual C++ 6.0 programming environment to run a debug version of a C++ connector. Assuming that the WebSphere Business Integration Adapters product is installed into a directory that ProductDir represents, to run a debug version of a C++ connector, set the executable for the debug session under Project Settings to the following:
ProductDir\bin\java.exe
In the program arguments, set the debug parameters to:
-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -Duser.home=D:\Crossworlds -classpath D:\crossworlds\lib\crossworlds.jar; D:\crossworlds\lib\crossworlds.jar;D:\crossworlds\lib\rt.jar; D:\crossworlds\lib\vbjorb.jar;D:\crossworlds\lib\vbjapp.jar; D:\crossworlds\lib\mq.jar AppEndWrapper -ddllName -nconnectorName -sserverName