Michael Mzik | 24 Apr 2007 10:18
Picon

Problem with valuetype in CORBAscript 1.3.5 and MICO 2.3.9

 

Hi all,

 

I am trying to use a valuetype together with CORBAscript 1.3.5 and MICO 2.3.9.

 

My IDL looks like this:

 

   valuetype IChiVariable {

     // initializer

     factory init(in any value);

   };

 

   valuetype IChiVariableInt : IChiVariable {

     public long value;

   };

 

The implementation is done in CORBAscript:

 

   # valuetype class for IChiVariableInt

   class ICHIVARIABLEINT

   {

     proc __ICHIVARIABLEINT__(self) {}

  

     proc init(self, value) {

       self.value = value

     }

   }

 

   # register valuetype factory

   CORBA.ORB.register_value_factory("IDL:IChiVariableInt:1.0", ICHIVARIABLEINT)

 

 

When I execute the script, I catch the exeception “< NotFound: method ‘register_value_factory’ in scope ORB >”,

although the CORBAscript documentation specifies the ‘register_value_factory()’ method to be available.

 

On the other hand, basic ORB methods do work correctly, e.g.  “println( CORBA.ORB.list_initial_services() )”

correctly gives me the following list:

["DynAnyFactory", "ImplementationRepository", "InterfaceRepository", "RootPOA", "POACurrent", "PrincipalCurrent", "CodecFactory", "PICurrent"]

 

 

Anybody has an idea of what I am doing wrong?

 

Thank you very much and my best regards,

 

Michael

 

_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Gmane