Visual J++: Information and Guidelines
Here is a brief outline of the steps needed to build the OSP component in Visual J++:
-
Create a Java application.
-
Implement IDataSource on the Java application.
-
Implement the methods for OLEDBSimpleProvider with the object (at least once).
Registration
In Visual J++, you create your own ProgID for the OSP Data Object. Then use javareg to register the OSP Data Object. You need to use the ProgID you created for the OSP Data Object when registering the provider.
Programming Notes
-
In Visual J++ implementations, use IDataSource and its methods (such as GetDataMember) to expose the correct OSP implementation to the Simple Provider DLL (MSDAOSP.DLL).
-
When coding data source notifications in Visual J++, use the addDataSourceListener and removeDataSourceListener methods with IDataSource to add and remove DataSource listeners.
-
jactivex is available in the Microsoft SDK for Java 2.0, and is now included with Visual J++.