Creating and using CORBA objects
777
Getting started with CORBA
The ColdFusion
cfobject
tag and
CreateObject
function support CORBA through the
Dynamic Invocation Interface (DII). As with COM, the object's type information must be
available to ColdFusion. Therefore, an IIOP-compliant Interface Repository (IR) must be
running on the network, and the object's Interface Definition Language (IDL) specification must
be registered in the IR. If your application uses a naming service to get references to CORBA
objects, a naming service must also be running on the network.
ColdFusion loads ORB runtime libraries at startup using a connector, which does not tie
ColdFusion customers to a specific ORB vendor. ColdFusion currently includes connectors for
the Borland Visibroker 4.5 ORB. The source necessary to write connectors for other ORBs is
available under NDA to select third-party candidates and ORB vendors
You must take several steps to configure and enable CORBA access in ColdFusion. For detailed
instructions, see
Installing and Using ColdFusion MX
.
Note:
When you enable CORBA access in ColdFusion, one step requires you to start the Interface
Repository using an IDL file. This file must contain the IDL for
all
the CORBA objects that you invoke
in ColdFusion applications on the server.
Creating and using CORBA objects
The following sections describe how to create, or instantiate, a CORBA object and how to use it
in your ColdFusion application.
Creating CORBA objects
The
cfobject
tag and
CreateObject
functions create in ColdFusion a stub, or proxy object, for
the CORBA object on the remote server. You use this stub object to invoke the remote object.
The following table describes the attributes you use in the
cfobject
tag to create a CORBA
object:
Attribute
Description
type
Must be CORBA
.
COM is the default.
context
Specifies the CORBA binding method, that is, how the object is obtained, as follows:
•
IOR
Uses a file containing the object's unique Interoperable Object Reference.
•
NameService
Uses a naming service.
class
Specifies the information required for the binding method to access the object.
If you set the
context
attribute to
IOR
, The
class
attribute must be to the full
pathname of a file containing the string version of the IOR. ColdFusion must be able
to read this IOR file at all times, so make it local to the server or put it on the network
in an accessible location.
If you set the
context
attribute to
NameService
, The
class
attribute must be a name
delimited by forward slashes (/), such as MyCompany/Department/Dev. You can
use period-delimited “kind” identifiers as part of the class attribute; for example,
Macromedia.current/Eng.current/CF"
Содержание ColdFusion MX
Страница 1: ...Developing ColdFusion MX Applications...
Страница 22: ...22 Contents...
Страница 38: ......
Страница 52: ...52 Chapter 2 Elements of CFML...
Страница 162: ......
Страница 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Страница 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Страница 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Страница 266: ......
Страница 314: ...314 Chapter 14 Handling Errors...
Страница 344: ...344 Chapter 15 Using Persistent Data and Locking...
Страница 349: ...About user security 349...
Страница 357: ...Security scenarios 357...
Страница 370: ...370 Chapter 16 Securing Applications...
Страница 388: ...388 Chapter 17 Developing Globalized Applications...
Страница 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Страница 410: ......
Страница 426: ...426 Chapter 19 Introduction to Databases and SQL...
Страница 476: ...476 Chapter 22 Using Query of Queries...
Страница 534: ...534 Chapter 24 Building a Search Interface...
Страница 556: ...556 Chapter 25 Using Verity Search Expressions...
Страница 558: ......
Страница 582: ...582 Chapter 26 Retrieving and Formatting Data...
Страница 668: ......
Страница 734: ...734 Chapter 32 Using Web Services...
Страница 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Страница 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Страница 788: ......
Страница 806: ...806 Chapter 35 Sending and Receiving E Mail...