<cfobject>

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

Usage

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

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
proxyport
(number, optional)

The port to use on the proxy server.

proxypassword
(string, optional)

The user's password on the proxy server.

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:

* \\lanserver
* lanserver
* http://www.servername.com
* www.servername.com
* 127.0.0.1
proxyuser
(string, optional)

The user ID to send to the proxy server.

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.

proxyserver
(string, optional)

The proxy server required to access the web service URL.

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.

name
(string, required)

name for the instantiated component.

webservice
(string, optional)

The absolute URL of the web service.

type
(string, optional)

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

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.

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.
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.

component
(string, optional)

Name of component to instantiate.

Examples

There are currently no examples for this tag.

See also