# CORBA

CreateObject allows you to call methods in CORBA objects. These CORBA objects must already have been defined and registered for use.

### Syntax

    CreateObject("CORBA", class, context, locale, )

#### class

Required. Specifies different information, depending on the CONTEXT specification:

- If CONTEXT is IOR -- Specifies the name of a file that contains the string version of the IOR. ColdFusion must be able to read this file at all times; it should be local to ColdFusion server or on the network in an open, accessible location.
- If CONTEXT is NameService -- Specifies a period-delimited naming context for the naming service, such as Allaire.Department.Doc.empobject.

#### context

Required. Specifies one of the following:

- "IOR" -- ColdFusion uses the Interoperable Object Reference (IOR) to access the CORBA server.
- "NameService" -- ColdFusion uses the naming service to access server. "NameService" is only valid with the InitialContext of a VisiBroker Orb.

#### locale

Optional. Sets arguments for a call to init_orb(..). Use of this attribute is specific to VisiBroker orbs, and is currently available on C++, Version 3.2. The value should be of the form:

" -ORBagentAddr 199.99.129.33 -ORBagentPort 19000"

Note that each type-value pair has to start with a leading "-".

### Usage

ColdFusion Enterprise version 4.0 and above supports CORBA through the Dynamic Invocation Interface (DII). To use CreateObject with CORBA objects, you need to know either the name of the file containing a string version of the IOR or the object's naming context in the naming service. You also need to know the object's attributes, method names and method signatures.

User-defined types (for example, structures) are not supported.