Release Notes

What's new?

What changed?

Library API

Note: To use the old API, require oil.compat instead of oil.

New auxiliary funtions in module oil.
  • oil.VERSION to check OiL's version.
  • oil.tasks instead of scheduler.
  • oil.sleep(time) instead of scheduler.sleep(time).
  • oil.pcall(func, ...) instead of scheduler.pcall(func, ...).
  • oil.time() as an alternative to socket.gettime().
  • oil.main(func) instead of scheduler.new(func, ...); scheduler.run().
  • oil.newthread(func, ...) instead of scheduler.start(func, ...).
  • oil.writeto(file, text) replaces the similar to oil.writeIOR(obj, file).
  • oil.readfrom(file) instead of oil.readIOR(file).
Operations related to the ORB are provided by the broker object, such as:
  • broker.types as an improved alternative to oil.getLIR().
  • broker:loadidl(idlspec) instead of oil.loadidl(idlspec).
  • broker:loadidlfile(idlfile) instead of oil.loadidlfile(idlfile).
  • broker:setIR(irprx) instead of oil.getIR(irprx).
  • broker:getIR() instead of oil.getIR().
  • broker:getLIR() instead of oil.getLIR().
  • broker:narrow(proxy [, interface]) instead of oil.narrow(proxy [, interface]).
  • broker:newproxy(strref [, interface]) instead of oil.newproxy(impl [, interface]).
  • broker:newservant(impl [, key, interface]) instead of oil.newservant(impl [, interface, key]).
  • broker:tostring(object) instead of obj:_ior().
  • broker:deactivate(obj|key|impl) improved alternative to obj:_deactivate().
  • broker:newencoder() to create a CDR encoder.
  • broker:newdecoder(string) to create a CDR decoder.
  • broker:newexcept(body) as an alternative to oil.Exception(body).
  • broker:setexcatch(func, type) to set exception handlers.
  • broker:run() instead of oil.run().
  • broker:pending() instead of oil.pending().
  • broker:step() instead of oil.step().
  • broker:shutdown() to shutdown the ORB.
  • broker:setinterceptor(iceptor, side) to set interceptors.
Integrated CORBA's IR
  • Ability to change IR definitions;
  • Ability to load module parts using different oil.loadidl* calls;
  • Consistent storage of all IDL definitions, not only interfaces;
  • Standard CORBA exceptions are loaded by default;
  • Ability to import any definition from the remote delegated IR (oil.setIR);
CORBA's GIOP implementation
  • Support for marshaling of typecode null and anys containing values of type null;
  • nil values used as any are automatically coded as null;
  • Any's now provide the field _anytype to identify the IDL type of the value;
  • Sequences with nil values can have field n to define its size;
  • Automatic reconnections when connection is closed.
    WARN: Operation invocation may be issued many times if no reply is sent (no at-most-once guarantees);
Object Proxies
  • oil.narrow and proxy:_narrow now accepts any valid interface specification, i.e. repID, absoulute name, IDL descriptor, or remote IR object;
  • The function used to handle exceptions can be defined for all proxies of a given interface by function oil.setexcatch(handler [, interface]). If no interface is provided then the handler is set for all proxies. Previously, this handler could only be set for individual proxies by field __exceptions;
  • Now, if the exception handler function returns (i.e. not raise a Lua error) then the exception is ignored and the values returned are used as the results of the invocation that raised in the original exception;
  • Addition of oil.deactivate( [, interface]) that removes an object from the ORB;
Servant Objects
  • Automatically generated object keys start with '\0' to provide a way for the application to avoid collisions with defined keys;
  • A single Lua object can be used as implementation of different CORBA objects created with automatic keys as long as they implement different interfaces because object keys now contains the interface descriptor hash-code.
    WARN: Each time a Lua object is used as an object with a different interface a new CORBA object is created for each interface, which will be the actual (i.e. most specific) interface of the new CORBA object. To avoid implicit creation of different CORBA objects with different interfaces for a single Lua object, set the __type field of the objet meta-table (i.e. its class) to the interface (repID, absolute name, IDL descriptor, or remote IR object) that should be used;
  • The interface of an implicitly created CORBA object can also be defined by field __type of the object implementation itself (in older versions, only the __type field of the metatable could be used);
Verbose Support
  • Prints parameter values and objects;
  • New level distribution:
    1. Operation invocation and dispatching;
    2. GIOP request and reply processing;
    3. Mutual exclusion channel access (concurrent mode);
    4. GIOP message creation and handling (i.e. requests and replies);
    5. Socket channels creation and handling (i.e. connection and transport);
    6. Value (un)marshaling;
    7. Hexadecimal view of marshaled streams;
    8. Creation of IDL descriptors and internal IR operation;
Development Support
  • Utility script to create Lua scripts that feed the internal IR with descriptions described in IDL files;
  • New demo about exception handling;
  • Unix shell scripts for execution of demos;

Copyright (C) 2004-2008 Tecgraf, PUC-Rio

This project is currently being maintained by Tecgraf at PUC-Rio with grants from CAPES and CNPq.