
376
Chapter 20 Using cfobject to Invoke Component Objects
Getting Started with CORBA
The ColdFusion
cfobject
tag supports CORBA through the Dynamic Invocation
Interface (DII). As with COM, the object’s type information has to be available to
ColdFusion. This requirement implies that an IIOP-compliant Interface Repository
(IR) should be running on the network, and that the object’s Interface Definition
Language (IDL) specification must be registered in the IR.
ColdFusion 5 loads ORB runtime libraries dynamically using a connector.
Macromedia provides connectors for some of the popular ORBs. Each of these
connectors requires the ORB runtime libraries provided by the vendor. You must
license the libraries from the appropriate vendor before deploying them. You
manage the connectors on the CORBA Connectors page of the ColdFusion
Administrator Server tab. Using this page, you can add a connector and specify the
location of the ORB library. For more information, see Installing and Configuring
ColdFusion Server.
Calling CORBA Objects
In the
cfobject
tag, you must specify the following attributes when calling CORBA
objects:
•
Set the
type
attribute to
CORBA
. If no
type
is specified, COM is assumed.
•
The
context
attribute shows how the object reference is obtained. Set
context
to
IOR
for a file containing the object’s unique Interoperable Object Reference or to
NameService
.
•
If you set the
context
attribute to
IOR
, set the
class
attribute to the file
containing the stringified version of the IOR. ColdFusion must be able to read
this IOR file at all times, so make it local to the server or on the network in an
accessible location.
•
If you set the
context
attribute to
NameService
, the
class
attribute must include
a period-delimited name, such as MyCompany.Department.Dev. Currently,
ColdFusion can only resolve objects registered in a CORBA 3.0-compliant
naming service. Make sure that the naming service (NS) is brought-up with a
default naming context. The server implementing the object should bind to the
default context, and register the appropriate name. ColdFusion also binds to the
default context to resolve the name.
•
Set the
name
attribute to the name that your application uses to call the object’s
operations and attributes.
For the complete
cfobject
syntax, see the CFML Reference.
Declaring structures and sequences
After you create the object, you can invoke attributes and operations on the object
using the syntax outlined in the previous sections. ColdFusion also supports the use
of complex types such as structures and sequences. For structures, use ColdFusion
structures; for sequences, use ColdFusion arrays.
Содержание COLDFUSION 5-DEVELOPING
Страница 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Страница 58: ...38 Chapter 3 Querying a Database ...
Страница 134: ...114 Chapter 7 Updating Your Database ...
Страница 210: ...190 Chapter 10 Reusing Code ...
Страница 232: ...212 Chapter 11 Preventing and Handling Errors ...
Страница 238: ...218 Chapter 12 Using the Application Framework ...
Страница 262: ...242 Chapter 12 Using the Application Framework ...
Страница 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Страница 320: ...300 Chapter 15 Indexing and Searching Data ...
Страница 336: ...316 Chapter 16 Sending and Receiving E mail ...
Страница 374: ...354 Chapter 18 Interacting with Remote Servers ...