332
Developing Web Applications with ColdFusion
•
REMOTE — This is also an Out-of-Process server object (also typically an EXE)
that is running remotely on the network. Using REMOTE implies using the
SERVER attribute to identify where the object resides.
Setting properties and invoking methods
The following example, using the sample SMTPMailer COM object, shows how to
assign properties to the mail message you want to send and how to execute
component methods to handle mail messages.
In the example, form variables are used to provide method parameters and properties,
such as the name of the recipient, the desired email address, and so on.
<!--- First, create the object --->
<CFOBJECT ACTION="Create"
NAME="Mailer"
CLASS="SMTPsvg.Mailer">
<!--- Then, use the form variables from the
user entry form to populate a number of properties
necessary to create and send the message. --->
<CFSET Mailer.FromName = #form.fromname#>
<CFSET Mailer.RemoteHost = #RemoteHost#>
<CFSET Mailer.FromAddress = #form.fromemail#>
<CFSET Mailer.Subject = "Testing CFOBJECT">
<CFSET Mailer.BodyText = "#form.msgbody#">
<CFSET Mailer.SMTPLog = "#logfile#">
<!--- Last, use the AddRecipient and SendMail
methods to finish and send the message along --->
<CFSET Mailer.AddRecipient("#form.fromname#","#form.fromemail#")>
<CFSET success=Mailer.SendMail()>
Getting Started with CORBA
ColdFusion supports CORBA through the Dynamic Invocation Interface (DII). As with
COM, the object's type information has to be available to ColdFusion. This implies
that an IIOP compliant Interface Repository (IR) should be running on the network,
and that the object's IDL is registered in the IR.
ColdFusion Enterprise version 4.0 is bundled with deployment software from Inprise
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 Enterprise. This directory is called
vbroker\log
and its location is
determined as follows:
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...