A POA for Session Objects

This section describes how to create and use a POA instance that is appropriate for activating and managing session objects. The sample IDL used to illustrate the POA for session objects is given in Listing 7.2.

Listing 7.2. A Sample IDL
//IDL

module RecycleBroker {
    //...

    // Interface for Session Objects
    interface Browsing {
        // operations and attributes not shown...
    };

    // Base Interface for Session Object Factory
    interface Office {
        Browsing get_browsing();
    };

    // Interface for Session Object Factory
    interface BranchOffice :  Office { };
};

This example is based on the RecycleBroker application described in Chapter 3.

Browsing objects are created for a short time to allow a particular user to browse the list of available ...

Get Pure CORBA now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.