Release Notes
What's new?
- Deferred calls, a.k.a. "futures" (see demo deferred);
- ORB shutdown operation (see demo selfcall);
- CORBA request interception (see demo interceptors);
- CORBA's
_is_equivalent
operation; - Customizable component-based architecture (see section Internal Architecture from the User Manual);
- IDL large numbers: long long, unsigned long long, long double (see file
config
);
NOTE: Lua must be changed so lua_Number islong double
.
What changed?
- Library API
-
Note: To use the old API, require
New auxiliary funtions in moduleoil.compat
instead ofoil
.oil
.oil.VERSION
to check OiL's version.oil.tasks
instead ofscheduler
.oil.sleep(time)
instead ofscheduler.sleep(time)
.oil.pcall(func, ...)
instead ofscheduler.pcall(func, ...)
.oil.time()
as an alternative tosocket.gettime()
.oil.main(func)
instead ofscheduler.new(func, ...); scheduler.run()
.oil.newthread(func, ...)
instead ofscheduler.start(func, ...)
.oil.writeto(file, text)
replaces the similar tooil.writeIOR(obj, file)
.oil.readfrom(file)
instead ofoil.readIOR(file)
.
broker
object, such as:broker.types
as an improved alternative tooil.getLIR()
.broker:loadidl(idlspec)
instead ofoil.loadidl(idlspec)
.broker:loadidlfile(idlfile)
instead ofoil.loadidlfile(idlfile)
.broker:setIR(irprx)
instead ofoil.getIR(irprx)
.broker:getIR()
instead ofoil.getIR()
.broker:getLIR()
instead ofoil.getLIR()
.broker:narrow(proxy [, interface])
instead ofoil.narrow(proxy [, interface])
.broker:newproxy(strref [, interface])
instead ofoil.newproxy(impl [, interface])
.broker:newservant(impl [, key, interface])
instead ofoil.newservant(impl [, interface, key])
.broker:tostring(object)
instead ofobj:_ior()
.broker:deactivate(obj|key|impl)
improved alternative toobj:_deactivate()
.broker:newencoder()
to create a CDR encoder.broker:newdecoder(string)
to create a CDR decoder.broker:newexcept(body)
as an alternative tooil.Exception(body)
.broker:setexcatch(func, type)
to set exception handlers.broker:run()
instead ofoil.run()
.broker:pending()
instead ofoil.pending()
.broker:step()
instead ofoil.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 typenull
; nil
values used asany
are automatically coded asnull
;- Any's now provide the field _anytype to identify the IDL type of the value;
- Sequences with
nil
values can have fieldn
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);
- Support for marshaling of typecode
- Object Proxies
-
oil.narrow
andproxy:_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(
that removes an object from the ORB;[, interface])
- 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);
- Automatically generated object keys start with
- Verbose Support
-
- Prints parameter values and objects;
- New level distribution:
- Operation invocation and dispatching;
- GIOP request and reply processing;
- Mutual exclusion channel access (concurrent mode);
- GIOP message creation and handling (i.e. requests and replies);
- Socket channels creation and handling (i.e. connection and transport);
- Value (un)marshaling;
- Hexadecimal view of marshaled streams;
- 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;