|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Getting Started with CORBA Objects
|
|
|
|
CORBA is the Common Object Request Brokerage Architecture, a specification for a component object system. ColdFusion Enterprise version 4.0 supports CORBA, through the Dynamic Invocation Interface (DII).
ColdFusion Enterprise version 4.0 is bundled with deployment software from VisiBroker for C++ 3.2. These runtime DLLs are used to invoke operations on object references made available using the CFOBJECT tag.
A directory for logging output from VisiBroker is created when you first start ColdFusion Server, Enterprise edition. This directory is called vbroker\log and its location is determined as follows:
- If VisiBroker is already installed on the server, the log directory is the directory pointed to by the
VBROKER_ADM environment variable.
- If this is a new VisiBroker installation, the log directory is created on the root of the drive from which ColdFusion Server is started. For example, if ColdFusion is installed in
c:\cfusion or opt/coldfusion (Solaris), then the log directory will be c:\vbroker\log or /vbroker (Solaris).
- If the creation of the log directory on the root fails, then the directory is created in the ColdFusion installation directory.
|
|
|
|
Note
|
|
|
User-defined types are not supported (i.e., structures).
|
|
|
|
Using CFOBJECT to create a CORBA object |
|
|
|
In the CFOBJECT tag, several key attributes are required for 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 the CONTEXT either to "IOR", for a file containing the object's unique Interoperable Object Reference, or to "NameService".
- If the CONTEXT attribute is set 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 it should be local to the server or on the network in an open, accessible location.
- If the CONTEXT attribute is set to a NameService, the CLASS attribute must include a period-delimited naming context for the naming service, such as Allaire.Department.Dev.
- Set the NAME attribute to the name your application uses to call the object's operations and attributes.
See the CFML Language Reference for information about the CFOBJECT tag as well as examples of CFOBJECT tag creating a CORBA object.
|
|
|
|
Information about CORBA
|
|
|
To learn more about CORBA, see the Object Management Group's site at http://www.omg.org.
|
|
|
  
|
|
|
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.
|
|