MACROMEDIA COLFUSION MX 7-CFML Reference page 974

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

start
Description
starts a gateway running.
Category
Event Gateway Development
Syntax
public void start()
See also
,
, "The start method" in Chapter 45, "Creating Custom Event Gateways" in
restart
stop
ColdFusion MX Developer's Guide
Usage
Start a gateway by performing any required initialization. This method starts any listener thread
or threads that monitor the gateway's event source. The ColdFusion MX Administrator calls this
function when it starts a gateway instance.
This method should update the status information that is returned by the
indicate when the gateway is starting and when the gateway is running.
The ColdFusion MX Administrator Gateway Types page lets you specify a time-out for the
gateway startup, and whether to kill the gateway on startup time-out. If you enable the kill option
and the
method does not return in the time-out period, ColdFusion MX will kill the
start
thread that called this function.
Example
The following example is the ColdFusion MX SocketGateway class
public void start()
{
status = STARTING;
listening=true;
// Start up event generator thread
Runnable r = new Runnable()
{
public void run()
{
socketServer();
}
};
Thread t = new Thread(r);
t.start();
status = RUNNING;
}
974
Chapter 6: ColdFusion MX Event Gateway Reference
method to
getStatus
method:
restart

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents