Next: 6.2 Configuring the BOA Up: 6. Mapping for the Previous: 6. Mapping for the

# 6.1 Initialising the BOA

Like the ORB, the BOA is a singleton i.e. there is at most one `BOA` instance per process. The BOA is created and intialised using the `BOA.BOA_init()` method which is declared as follows:

    def BOA_init(argv=[], boa_id=BOA_ID):
        """ Initialise the BOA.

        This is a factory method for the BOA class (the BOA is a
        singleton (i.e.  there can only be one BOA instance per process)).

        """

The fist parameter, `argv`, is a list of command line configuration options (often passed into an application via the Python variable `sys.argv`). The second parameter is the BOA identifier which in Fnorb must always be the value `BOA..BOA_ID`. The `BOA_init()` method can be called as many times as you like, and always returns a reference to the active BOA. Note that for convenience, `BOA_init()` can be called with no parameters at all.