Setting Properties And Invoking Methods; Getting Started With Corba - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

332
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
determined as follows:
Developing Web Applications with ColdFusion
and its location is
vbroker\log

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 4.5

Table of Contents