Init

Starts the Control‑M/EM API services and initializes CORBA with default values or with values specified with its optional parameters (an EMXMLInvoker static method). The init method must be run at program startup. The following table describes the three different prototypes.

init

Description

Prototype 1

Default implementation which initializes the CORBA services using a Control‑M/EM API-specific CORBA configuration that was created during the API post-installation configuration (using emapi-configure).

  • Syntax: Public static void init()
  • Parameters: None
  • Return codes: None

This CORBA configuration information is contained in the jacorb.properties file located under the emapi-900\etc directory.

Prototype 2

Enables you to include an array of strings representing a list of arguments.

  • Syntax: Public static void init(String[] args)
  • Parameters: The args parameter generally contains your command line arguments for the application’s main. This enables you to control ORB initialization from outside the program. For a list of CORBA parameters suitable for use in args, see the manufacturer’s documentation.
  • Return codes: None
  • For Code and Run examples, see Example: Init Prototype 2.

Prototype 3

Enables you to include an array of strings representing a list of arguments.

  • Syntax: Public static void init(String[] args, Properties props)
  • Parameters: The args parameter generally contains your command line arguments for the application’s main. This enables you to control ORB initialization from outside the program. The props parameter (Properties) can contain CORBA parameters, using the same options as in the command line that was passed as the first parameter (args). For a list of CORBA parameters suitable for use in args, see the manufacturer’s documentation.
  • The Properties class is part of the java.util package.
  • Return codes: None
  • For Code and Run examples, see Example: Init Protoype 3.

Parent Topic

EMBasicXMLInvoker and EMXML Invoker class