How do I discover which interfaces an ORBit object implements?



Hi All,

When I register a JDK1.3 CORBA server with the JDK1.3 name server, I can
discover the list of interfaces the server object satisfies by doing:

	String[] ids = obj._ids();
	for(int i = 0; i<ids.length; i++)
		System.out.println(ids[i]);

Which produces:

> IDL:com/blah/DerivedClass3:1.0
> IDL:com/blah/DerivedClass2:1.0
> IDL:com/blah/DerivedClass1:1.0
> IDL:com/blah/BaseClass:1.0


However, when I register an ORBit-0.5.12 CORBA server with the same name
server, I only get:

> omg.org/CORBA/Object:1.0

even though both servers implement the same IDL class.


Is there any way to get ORBit or orbit-idl to include such inheritance
information?  Failing that, it there any way I can hard-code the interface
names in the server.c code?

I need this info because my 'controller' invokes the server objects
differently based on which interfaces they satisfy.


Many thanks, Adam.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]