The CreateObject
function can call a method on a CORBA object. The object must be defined and registered for use.
A handle to a CORBA interface.
CreateObject(type, context, class, locale)
New in ColdFusion MX: the Naming Service separator format for addresses has changed from a dot to a forward slash. For example, if "context=NameService
", for a class, use either of the following formats for the class
parameter:
Macromedia/Eng/CF
"
Macromedia.current/Eng.current/CF
"
(In earlier releases, the format was "Macromedia.Eng.CF
".)
New in ColdFusion MX: the locale
attribute specifies the Java config that contains the properties file.
In the class
attribute, if "context=NameService
", use a dot separator for the first part of the string. Use either of the following formats:
Macromedia/Eng/CF
"
Macromedia.current/Eng.current/CF
"ColdFusion Enterprise supports CORBA through the Dynamic Invocation Interface (DII). To use this function with CORBA objects, you must provide the name of the file that contains a string version of the IOR, or the object's naming context in the naming service. You must provide the object's attributes, method names and method signatures.
This function supports user-defined types (structures, arrays, and sequences).
myobj = CreateObject("corba", "d:\temp\tester.ior", "ior", "visibroker") // uses IOR myobj = CreateObject("corba", "Macromedia/Eng/CF", "nameservice", "visibroker") // uses nameservice myobj = CreateObject("corba", "d:\temp\tester.ior", "nameservice") // uses nameservice and default configuration