<cfobject>

Lets you call methods in COM, CORBA, and JAVA objects.

This tag cannot have a body.

This tag is also supported within <cfscript>

<cfobject name=string component=string type=string action=create|connect class=string context=string delimiters=string server=string locale=string webservice=string username=string password=string proxyserver=string proxyport=number proxyuser=string proxypassword=string >
Attribute Description
name
string, required

name for the instantiated component.

component
string, optional

Name of component to instantiate.

type
string, optional

The object type. You can omit this attribute or specify component. Lucee automatically sets the type to component.

action
string, optional
  • create: instantiates a COM object (typically, a DLL) before invoking methods or properties.
  • connect: connects to a COM object (typically, an EXE) running on server.
class
string, optional

Component ProgID for the object to invoke. When using Java stubs to connect to the COM object, the class must be the ProgID of the COM object.

context
string, optional
  • inproc
    • local
    • remote

In Windows, if not specified, uses Registry setting.

delimiters
string, optional

if specified a classpath, use as delimiter for the entries, default is comma.

server
string, optional

Server name, using Universal Naming Convention (UNC) or Domain Name Serve (DNS) convention, in one of these forms:

locale
string, optional

Sets arguments for a call to init_orb. Use this attribute only for VisiBroker ORBs. It is available on C++, Version 3.2. The value must be in the form: locale = " -ORBagentAddr 199.99.129.33 -ORBagentPort 19000"

Each type-value pair must start with a hyphen.

webservice
string, optional

The absolute URL of the web service.

username
string, optional

The user name to use to access the web service. If the webservice attribute specifies a web service configured name in the Lucee Administrator, overrides any user name specified in the Administrator entry.

password
string, optional

The password to use to access the web service. If the webservice attribute specifies a web service name configured in the Lucee Administrator, overrides any password specified in the Administrator entry.

proxyserver
string, optional

The proxy server required to access the web service URL.

proxyport
number, optional

The port to use on the proxy server.

proxyuser
string, optional

The user ID to send to the proxy server.

proxypassword
string, optional

The user's password on the proxy server.

Examples

There are currently no examples for this tag.

See also