IMarshal Sample – Server Code

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

Description

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:

Key Project Files

JCServer.java

This is the COM object server that registers the class factories in the Running Class Table for the two Java/COM objects.

JavaCOM.java

This is the Java/COM object that implements the ICustom interface.

ICustom.java

This class contains two methods: one for returning a Java/COM object by reference, and one for returning a Java/COM object by value.

COMParam.java

This is a Java/COM object that will be passed as a parameter in the Java/COM methods.

Technologies Demonstrated

COM

These classes show how to:

© 1999 Microsoft Corporation. All rights reserved. Terms of use.