[omniORB] dynamic loading service
Sai-Lai Lo
S.Lo@orl.co.uk
23 Sep 1998 18:14:14 +0100
Renzo,
It is possible to do what you want with the hook that is in place since
omniORB 2.5.0.
Check out the class 'loader' in <top>/include/omniORB2/omniORB.h.
I'll add to the user guide to make this feature more prominent.
If you can produce a working example of using this hook and loading
implementation DLLs, please share it will other users. I'm sure there are
many users interested in this functionality.
Sai-Lai
>>>>> Renzo Tomaselli writes:
> I would like to setup an Omniorb2 service for NT with the capability to
> load object implementations on demand. It's pretty easy to achieve it with
> a simple resident object carrying a couple of methods such as load/unload,
> where objects to load are persistent (fixed key) and bound to a DLL by
> means of a config table. However it would be much more interesting to have
> automatic loading at the very first "touch" of such persistent objects;
> this would require the capability for the Omniorb2 BOA (in the server) to
> trap CORBA::OBJECT_NOT_EXIST, load the implementation DLL and try again.
> Much like the proxy SystemException handler, but on the opposite side of
> the wire.
> Since I didn't find such feature in the latest snapshot, where is the most
> suitable point to insert such hook at BOA level (thus modifying BOA sources
> off course) ? Had anyone got a similar need among Omniorb users community ?
--
Dr. Sai-Lai Lo | Research Scientist
|
E-mail: S.Lo@orl.co.uk | Olivetti & Oracle Research Lab
| 24a Trumpington Street
Tel: +44 223 343000 | Cambridge CB2 1QA
Fax: +44 223 313542 | ENGLAND