org.omg.CORBA.IRObject
, which is the most generic interface. IRObject
provides methods for narrowing, cloning, and duplicating an IRObject
reference. It also allows you to identify the type of an IRObject
.
The bank/bank.idl file.
// Bank.idl
Figure 7.1 IR object hierarchy for the Bank.idl specification.
module Bank {
interface Account {
float balance();
};
interface AccountManager {
Account open(in string name);
};
}; Identifying IR Objects
The following table lists objects provided to identify and classify IR objects.
IRObject Types
The following table summarizes the objects that can be contained in the IR.
Using the IR
To use the IR, do the following:
VBROKER_ADM
environment variable specifies the default location for the ORB log file. It enables the Interface Repository to locate the default repository files. If VBROKER_ADM is not set, the files will reside in a \log
directory on the current drive by default.
irep
command to start the IR. Specify an interface repository server and, optionally, a database containing detailed descriptions of IDL interfaces. For example:
prompt> irep my_ir ir_dbThis command is described in the Netscape Internet Service Broker for Java Reference Guide.
idl2ir
command can be used to populate an IR instance with objects defined in an IDL file. For example, the following command populates an IR named my_repository
with objects defined in the file Bank.idl
.
prompt> idl2ir -ir my_repository java_examples/bank/Bank.idlThis command is described in the Netscape Internet Service Broker for Java Reference Guide. You can also write your own applications that bind to an IR and add objects.
Last Updated: 02/04/98 13:47:00