User Guide

312 Chapter 2: ColdFusion Tags
cfobject
Description
Creates a ColdFusion object, of a specified type.
Note: You can enable and disable this tag in the ColdFusion Administrator page, under ColdFusion
Security, Sandbox Security.
Category
Extensibility tags
Syntax
The tag syntax depends on the object type. Some types use the type attribute; others do not. See
the following sections:
cfobject: COM object” on page 313
cfobject: component object” on page 315
cfobject: CORBA object” on page 316
cfobject: Java or EJB object” on page 318
cfobject: web service object” on page 320
Note: On UNIX, this tag does not support COM objects.
See also
cfargument
, cfcomponent, cffunction, cfinvoke, cfinvokeargument, cfproperty,
cfreturn; “Using Java objects” in Chapter 37, “Integrating J2EE and Java Elements in CFML
Applications, in ColdFusion MX Developers Guide
History
ColdFusion MX:
Changed instantiation behavior: this tag, and the CreateObject function, can now instantiate
ColdFusion components (CFCs); you can use them within the
cfscript tag.
For CORBA object: changed the Naming Service separator format for addresses 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".)
For CORBA object: changed the locale attribute; it specifies the Java configuration that
contains the properties file.