Cfobject Type="Java - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 1: ColdFusion Tags
Note that each type-value pair has to start with a leading "-".
Usage
ColdFusion Enterprise version 4.0 and above supports CORBA through the Dynamic
Invocation Interface (DII). To use CFOBJECT with CORBA objects, you need to know
either the name of the file containing a stringified version of the IOR or the object's
naming context in the naming service. You also need to know the object's attributes,
method names and method signatures.
User-defined types (for example, structures) are not supported.
Example
<CFOBJECT TYPE="CORBA"
CONTEXT="IOR"
CLASS="c:\\myobject.ior"
NAME="GetName">

CFOBJECT Type="JAVA"

CFOBJECT allows you to create and use JAVA objects, and by extension EJB objects.
This support is currently only for NT, but will be extended to Solaris in the next release.
Syntax
<CFOBJECT
ACTION="Create"
TYPE="Java"
CLASS="Java class"
NAME="object name"
>
ACTION
Required. Specifies "Create" in order to create the Java object or the WebLogic
Environment.
TYPE
Required. Specifies that the type of object, in this case, this is always "Java."
CLASS
Required. Specifies the Java class.
NAME
Required. The name used within CFML to access the object.
Usage
To be able to call Java CFXs or Java objects, ColdFusion uses a JVM embedded in the
process. The loading, location and the settings for the JVM are configurable using the
ColdFusion Administrator pages.
Any Java class available in the class path specified in the ColdFusion Administrator can
be loaded and used from ColdFusion using the CFOBJECT tag.
Use the following steps to access Java methods and fields:
147

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents