Attribute
Description
name
Specifies the name (handle) that your application uses to call the object's interface.
locale
(Optional) Identifies the connector configuration. You can omit this option if
ColdFusion MX Administrator has only one connector configuration, or if it has
multiple connector configurations and you want to use the one that is currently
selected in the Administrator. If you specify this attribute, it must be an ORB name
you specified in the CORBA Connector ORB Name field when you configured a
CORBA connector in ColdFusion MX Administrator; for example, Visibroker.
For example, use the following CFML to invoke a CORBA object specified by the tester.ior file if
you configured your ORB name as Visibroker:
<cfobject action = "create" type = "CORBA" context = "IOR"
class = "d:\temp\tester.ior" name = "handle" locale = "Visibroker">
When you use the
function return variable, and specify the type, class, context, and locale as arguments. For
example, the following line creates the same object as the preceding
handle = CreateObject("CORBA", "d:\temp\tester.ior", "IOR", "Visibroker")
For the complete
Using a naming service
Currently, ColdFusion can only resolve objects registered in a CORBA 2.3-compliant naming
service.
If you use a naming service, make sure that its naming context is identical to the naming context
specified in the property file of the Connector configuration in use, as specified in the
ColdFusion MX Administrator CORBA Connectors page. The property file must contain the
line "SVCnameroot=name" where name is the naming context to be used. The server
implementing the object must bind to this context, and register the appropriate name.
Using CORBA objects in ColdFusion
After you create the object, you can invoke attributes and operations on the object using the
syntax described in
rules for using CORBA objects in ColdFusion pages. They include information on using
methods in ColdFusion, which IDL types you can access from ColdFusion, and the ColdFusion
data types that correspond to the supported IDL data types.
Using CORBA interface methods in ColdFusion
When you use the
ColdFusion creates a handle to a CORBA interface, which is identified by the
attribute or the
CreateObject
creates a handle named myHandle:
<cfobject action = "create" type = "CORBA" context = "IOR"
class = "d:\temp\tester.ior" name = "myHandle" locale="visibroker">
<cfset myHandle = CreateObject("CORBA", "d:\temp\tester.ior", "IOR",
"visibroker")
You use the handle name to invoke all of the interface methods, as in the following CFML:
<cfset ret=myHandle.method(foo)>
778
Chapter 34: Integrating COM and CORBA Objects in CFML Applications
function to invoke this CORBA object, specify the name as the
CreateObject
and
cfobject
CreateObject
"Creating and using objects" on page
tag or the
cfobject
function return variable. For example, the following CFML
syntax, see
CFML
763. The following sections describe the
function to create a CORBA object,
CreateObject
tag:
cfobject
Reference.
cfobject name
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers