These classes are located in \Samples\Com\IMarshal\Sample\Server.
Note To use this sample, it is recommended that you have Microsoft® Visual C++® version 5.0 or higher installed.
Description
Key Project Files
Technologies Demonstrated
The Java/COM object server implemented here leverages the functionality provided by the sample.dcom.* classes for creating and registering a class factory that serves out-of-process components with instances of the Java/COM objects used by the Marshaling by Value sample.
Essentially, this package contains one server application (JCServer.java) that registers the two Java objects that will be served:
This is the COM object server that registers the class factories in the Running Class Table for the two Java/COM objects.
JavaCOM.javaThis is the Java/COM object that implements the ICustom interface.
ICustom.javaThis class contains two methods: one for returning a Java/COM object by reference, and one for returning a Java/COM object by value.
COMParam.javaThis is a Java/COM object that will be passed as a parameter in the Java/COM methods.
These classes show how to: