Java - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions
"IOR" — ColdFusion uses the Interoperable Object Reference (IOR) to access
the CORBA server.
"NameService" — ColdFusion uses the naming service to access server.
"NameService" is only valid with the InitialContext of a VisiBroker Orb.
locale
Optional. Sets arguments for a call to init_orb(..). Use of this attribute is specific to
VisiBroker orbs, and is currently available on C++, Version 3.2. The value should be
of the form:
" -ORBagentAddr 199.99.129.33
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 string 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.

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
CreateObject("JAVA", class )
class
Required. Specifies the Java class.
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 CF Administrator can be
loaded and used from ColdFusion using the CreateObject function.
Use the following steps to access Java methods and fields:
1.
2.
Calling a public method on the object without first calling the "init" method results in
an implicit call to the default constructor. Arguments and return values can be any
Call CreateObject or CFOBJECT to load the class.
Use the init method with appropriate arguments to call a constructor
explicitly. For example:
<CFSET ret = myObj.init(arg1, arg2)>
-ORBagentPort 19000"
303

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