[Mono-list] corba questions

Tyson Dowd trd@cs.mu.oz.au
Thu, 19 Jul 2001 18:16:52 +0200


On 19-Jul-2001, Sebastien Lambla <sebastien.lambla@6sens.com> wrote:
> Andrew,
> 
> I think the CORBA support in mono has two aspects:
> 
> 1. Accessing CORBA objects, that would need being able to generate CORBA
> wrappers, which is quite similar to COM wrappers, using reflection to
> construct a .net wrapper of the object from the IDL, and make the interop
> transparent to the .net program. Writing it in pure C# would be a great
> addition to mono and to the dotnet platform in general.

I've only thought about this very quickly, but here are my thoughts:

The IDL doesn't have to play a part in this.  It would be better to take
an existing CORBA object, and query it dynamically (using DII) to find
out what its types are, then generate the appropriate .NET interface
which is a small stub into the CORBA object.

This is the approach taken by the MS tool tlbimp, which takes a type
library and makes a .NET interface for it.

(You can do the same thing starting from IDL, but then you have to have
the IDL to begin with, and you have to write a parser for IDL).

> 2. Accessing .net objects as corba objects. On this subject, I don't know
> anything :-)

Probably easiest to do it dynamically too, using DSI.

If you expose the .NET object as CORBA interfaces and types, other
people can use it without knowing anything about it.

But I will have to think about it some more to be sure.

Tyson.