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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.