.NET Remoting Examples


Microsoft® .NET remoting provides a framework that allows objects to interact with one another across application domains. The framework provides a number of services, including activation and lifetime support, as well as communication channels responsible for transporting messages to and from remote applications. Formatters are used for encoding and decoding the messages before they are transported by the channel.

As .NET remoting is a feature, specific to the .NET framework, .NET remoting applications cannot directly interoperate with the TIBCO adapter for COM, which is a pure Win32 application. In order to be able to communicate with .NET remoting applications, the adapter needs an interoperable bridge or wrapper, which is a piece of software that accepts commands from the adapter, modifies them, and forwards them to the .NET remoting application.

The following figure explains the interaction between the interoperable bridge component, the adapter and the .NET remoting server.

Figure 7 TIBCO Adapter for COM interoperability with .NET Remoting server

The example setup comprises the following components:

To create the Interoperable Wrapper:

  1. To interoperate with the adapter, the bridge component should implement all the guidelines specified in the section Adapter and .NET Component Interoperability.
  2. As the bridge acts as a client to the remoting object, it should create an object of that type and also register the channels required for communicating with the remoting server. This code is implemented in the constructor of the RemotingWrapper for the examples.
  3. The interoperable bridge should implement the methods present in the remote object which are to be exposed to the adapter. The implementation of these methods should involve delegating the calls to the corresponding methods on the .NET remote object.

Examples Scenario

When the adapter invokes methods on the interoperable bridge, the bridge forwards the method calls to the corresponding methods in the remoting server. The .NET remoting system intercepts the calls; forwards them to the remoting server. The results are returned to the interoperable bridge, which is returned to the adapter.


TIBCO Adapter™ for COM User’s Guide
Software Release 5.3, September 2005
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com