Initialize the connection to the CORBA ORB and BOA and internal library variables.

Usage

CORBAinit(args=corbaCommandLineArgs(), which=c(T, T))

Arguments

args character vector passed to the initialization of the ORB and BOA to parameterize their creation allowing run-time configuration to override default settings. The useful values are typically ORB dependent. Most Orbacus (the default CORBA implementation we use) options can be provided in the file identified by the environment variable ORBACUS_CONFIG.
which logical vector controlling whether the ORB and/or BOA should be initialized. This allows one to defer initializing the BOA. Rarely needed.

Description

Establishes a connection to the CORBA Object Request Broker (ORB) and optionally the Basic Object Adapter. Connections to the naming service and interface repository are done as needed in other calls. This function is usually invoked by .First.lib() Calling it more than once usually causes the CORBA implementation to display a warning as most implementations do not support re-initializing an ORB or BOA.

Value

logical vector of length 2 (or the same length as the argument which indicating whether the instantiation of the ORB and BOA were successful.

Note

Author(s)

Duncan Temple Lang

References

Henning and Vinoski, Advanced CORBA Programming in C++ Alan Pope, The CORBA Reference Guide, Orbacus Reference Manual http://www.ooc.com/ob/download

See Also

interfaceRepository, namingService

Examples

 CORBAinit()
   # Initialize the BOA to listen on the port 2001
   # along with the other command line arguments.
 CORBAinit(c("-OAport","2001",commandArgs()))


[Package Contents]