Chapter 2: ColdFusion Functions
303
•
"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 -ORBagentPort 19000"
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.
Call CreateObject or CFOBJECT to load the class.
2.
Use the init method with appropriate arguments to call a constructor
explicitly. For example:
<CFSET ret = myObj.init(arg1, arg2)>
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
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...