ColdFusion System Probes HAS BEEN DEPRECATED
For a full list of deprecated features, refer to Deprecated features.
ColdFusion System Probes HAS BEEN DEPRECATED
For a full list of deprecated features, refer to Deprecated features.
Use the Adobe ColdFusion Administrator to perform basic administration tasks. You can also use the Administrator Application Programming Interface (API) to perform Administrator functionality programmatically.
Immediately after you install ColdFusion, you might have to perform some or all the administrative tasks described in the following table:
Task |
Description |
---|---|
Establish database connections |
ColdFusion applications require data source connections to query and write to databases. To create, verify, edit, and delete database connections, use the Data Sources page. For more information, see Data Source Management for ColdFusion. |
Specify directory mappings |
Directory mappings redirect relative file paths to physical directories on your server. To specify server-wide directory aliases, use the Mappings page. For more information, see Mappings page. |
Configure debugging settings |
Debugging information provides important data about CFML page processing. To choose the debugging information to display, and to designate an IP address to receive debugging information, use the Debugging & Logging section.For more information, see Debugging Output Settings page. |
Set up e-mail |
E-mail lets ColdFusion applications send automated e-mail messages. To configure an e-mail server and mail options, use the Mail Server page.For more information, see Mail page. |
Change passwords |
You might have to change the passwords that you set for the ColdFusion Administrator and Remote Development Service (RDS) during ColdFusion installation. To change passwords, use the Security section.For more information, see Administrator page and RDS page. |
Define user-specific access to the ColdFusion Administrator |
To grant user-specific access to the ColdFusion Administrator, you create users and specify a user name, password, applicable sandboxes, and the sections of the ColdFusion Administrator that each user can access. For more information, see Security section. |
Configure Java settings |
(Server configuration only) You might have to customize Java settings, such as classpath information, to meet the needs of your applications. To change Java settings, use the Java and JVM page.For more information, see Extensions section. |
Restrict tag access |
Some CFML tags might present a potential security risk for your server. To disable certain tags, use the Sandbox Security page.For more information, see Administering ColdFusion Security. |
You can use the buttons on the upper left of the ColdFusion Administrator to access online Help, information about additional resources, and system information.
The Server Settings section lets you manage client and memory variables, mappings, charting, and archiving. It also allows you to configure e-mail and Java settings.
The Settings page of the ColdFusion Administrator contains configuration options that you can set or enable to manage ColdFusion. These options can significantly affect server performance. The following table describes the options:
Option |
Description |
|||||
---|---|---|---|---|---|---|
Timeout Requests After (Seconds) |
Prevents unusually lengthy requests from using up server resources. Enter a limit to the time that ColdFusion waits before terminating a request. Requests that take longer than the time-out period are terminated. |
|||||
Enable Per App Settings |
Lets developers programmatically define ColdFusion settings such as mappings and debugging per application. |
|||||
Use UUID For cftoken |
Specify whether to use a universally unique identifier (UUID), rather than a random number, for a cftoken. |
|||||
Enable HTTP Status Codes |
Configures ColdFusion to set a status code of 500 Internal Server Error for an unhandled error. Disable this option to configure ColdFusion to set a status code of 200 OK for everything, including unhandled errors. |
|||||
Enable Whitespace Management |
Compresses repeating sequences of spaces, tabs, and carriage returns and linefeeds. Compressing whitespace can significantly compact the output of a ColdFusion page. This option is enabled, by default. |
|||||
Disable Access To Internal ColdFusion Java Components | Prevents CFML code from accessing and creating Java objects that are part of the internal ColdFusion implementation. This prevents a non-authenticated CFML template from reading or modifying administration and configuration information for this server. | |||||
Disable CFC Type Check |
Turns off verifying the CFC type when calling methods with CFCs as arguments. This option also disables verifying an object that implements the right interface. Enabling this option can improve the performance of your application. However enable it only on a production server. |
|||||
Disable Access To Internal ColdFusion Java Components |
Prevents CFML code from accessing and creating Java objects that are part of the internal ColdFusion implementation. This prevents a non-authenticated CFML template from reading or modifying administration and configuration information for this server. |
|||||
Preserve Case for Struct Key for Serialization | Maintains and preserves the case in which keys of a struct have been defined. If not checked, keys will be converted to uppercase. Cases for struct keys were not preserved in the past versions of ColdFusion. The struct keys get converted to upper case automatically. For instance, consider the following code:
In ColdFusion 10 and earlier versions, the output generated by the above code will be:
For ColdFusion 11 and following, the output generated will be:
To enable case preservation of struct keys, change the setting in the ColdFusion Administrator, as discussed above.
To enable case preservation of struct keys at the application level, modify the application.cfc file by setting:
|
|||||
Prefix serialized JSON with |
Protects web services, which return JSON data from cross-site scripting attacks by prefixing serialized JSON strings with a custom prefix. |
|||||
Enable In-Memory File System |
Enables the in-memory virtual file system support. By default, this is enabled. |
|||||
Memory Limit for In-Memory Virtual File System |
Lets you specify the memory limit in Megabytes (MB) for in-memory virtual file system. |
|||||
Watch Configuration Files For Changes (Check Every nSeconds) |
Sets ColdFusion to monitor its configuration files and automatically reload them if they change. This action is required if you deploy ColdFusion in a WebSphere ND vertical cluster, because multiple instances of ColdFusion share the same configuration files. It is recommended that you do not enable this feature for most installations. |
|||||
Enable Global Script Protection |
Protects Form, URL, CGI, and Cookie scope variables from cross-site scripting attacks. Select this option if your application does not contain this type of protection logic. |
|||||
Allow Extra Attributes in AttributeCollection |
Specify whether ColdFusion tags can pass non-standard attributes in the attributecollection structure. |
|||||
Clear temporary files created during CFaaS after |
Specify the time in minutes after which the temporary files created during CF as a Service(CFaaS) operation must be deleted. The default value is 30 minutes. |
|||||
ORM Search Index Directory |
Specify the index directory (the one in which all persistent entities, of an application's indexable data, are saved) either at the server-level or application-level. |
|||||
Default ScriptSrc Directory |
Specify the default path (relative to the web root) to the directory that contains the cfform.js file. Developers reference this file in the ScriptSrc attribute of the cfform tag. In a hosted environment, you might need to move the cfform.js file to a directory other than CFIDE. |
|||||
Google Map API Key |
Specify the Google Map API license key that you require to access Google Maps. |
|||||
Component with onServerStart() method |
Specify the absolute path to a CFC having onServerStart() method or specify a dot delimited CFC path under web root, like "a.b.server". By default, ColdFusion looks for server.cfc under web root. |
|||||
Allowed file extensions for <cfinclude> tag (New in ColdFusion 11) | Specify the list of allowed file extensions (as a comma separated list) while using the <cfinclude> tag. Specifying a wildcard ('*') in the list makes any file included using the <cfinclude> tag to be compiled. If any other file included using the <cfinclude> tag is not found in this list, their content will be statically included. By default files with the extensions cfm and cfml always gets compiled irrespective of this setting. This value can be overridden at the application-level using the key compileExtForInclude in theApplication.cfc/Application.cfm file. | |||||
Application.cfc/Application.cfm lookup order |
Select the order in which ColdFusion searches for Application.cfm or Application.cfc if it is not found in the current project folder. You can set ColdFusion to search as follows:
|
|||||
Missing Template Handler |
Specify a page to execute when ColdFusion cannot find a requested page. This specification is relative to the web root.Note: If the user is running Microsoft Internet Explorer with "Show Friendly HTTP error messages" enabled, Internet Explorer displays this page only if it contains more than 512 bytes. |
|||||
Site-Wide Error Handler |
Specify a page to execute when ColdFusion encounters an error while processing a request. This specification is relative to the web root. When you define a site-wide error handler or missing template handler, ColdFusion does not log page-not-found errors and exceptions.Note: If the user is running Internet Explorer with Show Friendly HTTP Error Messages enabled, Internet Explorer only displays this page if it contains more than 512 bytes. |
|||||
Maximum Size Of Post Data |
Limits the amount of data that can be posted to the server in a single request. ColdFusion rejects single requests larger than the specified limit. |
|||||
Request Throttle Threshold |
Requests smaller than the specified limit are not queued or counted as part of the total memory. Requests larger than the specified limit are counted as part of total memory and are queued if the request throttle-memory size is exceeded. |
|||||
Request Throttle Memory |
Limits total memory size for the throttle. If sufficient total memory is not available, ColdFusion queues requests until enough memory is free. |
|||||
Disable Creation of unnamed application |
Disallows creation of unnamed applications. |
|||||
Allow REST Discovery |
Specify whether to allow Adobe API Manager to discover REST services published in ColdFusion.
|
You can specify the number of simultaneous requests that can be processed for each of the following types of requests:
Web Service requests
The settings are contained completely within ColdFusion code and work across all J2EE application servers. You do not have to restart the ColdFusion server for changes to the configuration to take effect. JSP processing is not affected by these changes.
Note: The Flash Remoting request control setting applies to remoting that uses ActionScript 2.0 and ActionScript 3.0, with each type treated independently. For example, a setting of 5 means that up to 5 ActionScript 2.0 Flash Remoting and 5 ActionScript 3.0. Flash Remoting requests are allowed simultaneously. |
The Request Tuning page of the Administrator contains configuration options that you use to specify the number of different types of requests and threads that ColdFusion can handle simultaneously.
Option |
Description |
---|---|
Maximum Number Of Simultaneous Template Requests |
The number of CFML page requests that can be processed concurrently. Use this setting to increase overall system performance for heavy-load applications. Requests beyond the specified limit are queued. |
Maximum Number Of Simultaneous Flash Remoting Requests |
The number of Adobe Flash Remoting requests that can be processed concurrently. |
Maximum Number Of Simultaneous Web Service Requests |
The number of Web Service requests that can be processed concurrently. |
Maximum Number Of Simultaneous CFC Function Requests |
The number of ColdFusion Component methods that can be processed concurrently through HTTP. This does not affect starting CFC methods from CFML, only methods requested through an HTTP request. |
Maximum Number Of Simultaneous Report Threads |
The maximum number of ColdFusion reports that can be processed concurrently. |
Maximum Number Of Threads Available For CFTHREAD |
CFTHREAD that runs concurrently. Threads that CFTHREAD creates in excess of the specified limit are queued. |
Timeout Requests Waiting In Queue After n Seconds |
If a request has waited in queue beyond the specified limit, time out the request. This value must be at least as long as the Request Timeout setting (currently 60 seconds). |
Request Queue Timeout Page |
Specify a relative path to an HTML page to send to clients when a template requests time out before getting a chance to run. For example "/CFIDE/timeout.html." This page cannot contain CFML. If a page is not specified, clients receive a 500 Request Timeout error when their request does not get a chance to run. |
The Caching page of the Administrator contains configuration options that you can set or enable to cache templates, queries, and data sources. These options can significantly affect server performance. The following table describes the settings:
Option |
Description |
---|---|
Maximum Number Of Cached Templates |
Enter a value that specifies the number of templates that ColdFusion caches. For best application performance, set this option to a value that is large enough to contain the commonly accessed ColdFusion pages, yet small enough to avoid excessive reloading. You can experiment with a range of values on your development server; a suitable starting point is one page per MB of Java Virtual Machine (JVM) size. |
Trusted Cache |
Use cached templates without checking whether they changed. For sites that are not updated frequently, using this option minimizes file system overhead. |
Cache Template in Request |
When checked, any requested files are inspected only once for potential updates within a request. If unchecked, requested file are inspected for changes each and every time when it is accessed within the same request. For application where templates/components are not expected to reflect updates within the same request, this minimizes file system overhead. This setting does not require restarting the server. |
Component cache |
When checked, component path resolution is cached and not resolved again. This setting does not require restarting the server. |
Save Class Files |
Saves to disk the class files that the ColdFusion bytecode compiler generates. During the development phase, it is typically faster if you disable this option. |
Cache Web Server Paths |
Caches ColdFusion page paths for a single server. Clear this option if ColdFusion connects to a web server with multiple websites or multiple virtual websites. |
Maximum Number Of Cached Queries |
Enter a value to limit the maximum number of cached queries that the server maintains. Cached queries allow retrieval of result sets from memory rather than through a database transaction. Because queries reside in memory, and query result set sizes differ, provide a limit for the number of cached queries. You enable cached queries with the cachedwithin or cachedafter attributes of the cfquery tag. When the maximum number of cached queries is reached, the oldest query is dropped from the cache and replaced with the specified query. If you set the maximum number of cached queries to 0, query caching is unlimited. |
Use Internal Cache to Store Queries |
When you select this option, at server level, internal cache is used to store cached queries. By default, cached queries are stored in QUERY region supported by Ehcache. |
Clear Template Cache Now |
Empties the template cache. ColdFusion reloads templates into memory the next time they are requested and recompiles them if they have been modified. |
Clear Template Cache of Specific Folder |
In the previous releases, you have the option only to clear the trusted cache, which clears the entire system cache. Now you can limit the clearing to folder level using this option. |
Clear Component Cache Now |
Empties the component cache. ColdFusion ignores the resolved path for components and try resolution again. |
Clear Query Cache Now |
Removes the query cache in the server. |
You enable client variable default settings in ColdFusion on the Client Variables page of the Administrator. ColdFusion lets you store client variables in the following ways:
In database tables
Note: If your data source uses one of the JDBC drivers bundled with ColdFusion 10, ColdFusion can automatically create the necessary tables. If your data source uses the ODBC Socket or a third-party JDBC driver, you manually create the necessary CDATA and CGLOBAL database tables. |
In the operating system registry
Note: Adobe recommends that you do not store client variables in the registry because it can critically degrade performance of the server. If you use the registry to store client variables, you allocate sufficient memory and disk space. |
To override settings specified in the Client Variables page, use the Application.cfc file or the cfapplication tag. For more information, see the Developing ColdFusion Applications.
Option |
Description |
---|---|
Description |
A description of the client data store and its settings. Not displayed for Registry. |
Create Client database tables |
If ColdFusion can determine that the database you use supports SQL creation of database tables, this option appears, and you do not need to create the client variable tables before they are used. In this case, the Create Client Database Tables option appears on the Add/Edit Client Store page; if you select this option, ColdFusion creates the necessary tables in the database. If the database does not support SQL table creation, if the database already has the required tables, or if you are using the Registry, this option does not appear. |
Purge data for clients that remain unvisited for n days |
Typically, client data is saved for a limited time. To delete (purge) client data that has not been accessed in a specified number of days, select this option and enter a value for the number of days. If a cluster of ColdFusion servers uses this data source, ensure that only one server is configured to purge client data. |
Disable global client variable updates |
By default, ColdFusion updates client variables for every page request. To prevent ColdFusion from updating variables, select this option. If updates are disabled, ColdFusion updates global client variables only when they are first created and when they are updated. This helps improve application performance. |
Storage type |
Advantages |
Disadvantages |
---|---|---|
Data source |
|
|
Browser cookies |
|
|
System registry |
|
|
To migrate your client variable data to another data source, determine the structure of the database tables that store this information. Client variables stored externally use two simple database tables, as shown in the following tables:
CDATA Table |
---|
Column |
Data type |
---|---|
cfid |
CHAR(64), TEXT, VARCHAR, or equivalent |
app |
CHAR(64), TEXT, VARCHAR, or equivalent |
data |
MEMO, LONGTEXT, LONG VARCHAR, or equivalent |
CGLOBAL Table |
---|
Column |
Data type |
---|---|
cfid |
CHAR(64), TEXT, VARCHAR, or equivalent |
data |
MEMO, LONGTEXT, LONG VARCHAR, or equivalent |
lvisit |
TIMESTAMP, DATETIME, DATE, or equivalent |
Use the following sample ColdFusion page as a model for creating client variable database tables in your own database. However, keep in mind that not all databases support the same column data type names. For the proper data type, see your database documentation.
Note: The ColdFusion Administrator can create client variable tables for data sources that use one of the bundled JDBC drivers. For more information, see the Online Help. |
This example applies to Microsoft Access databases. ( cfid char(20), app char(64), data memo ) </cfquery> <cfquery name="data2" datasource="#DSN#"> CREATE UNIQUE INDEX id1 ON CDATA (cfid,app) </cfquery> <cfquery name="global1" datasource="#DSN#"> CREATE TABLE CGLOBAL ( cfid char(20), data memo, lvisit date ) </cfquery> <cfquery name="global2" datasource="#DSN#"> CREATE INDEX id2 ON CGLOBAL (cfid) </cfquery> <cfquery name="global2" datasource="#DSN#"> CREATE INDEX id3 ON CGLOBAL (lvisit) </cfquery>
You can specify maximum and default time-out values for session and application variables. Unless you define a time-out value in an Application.cfc or Application.cfm file, application variables expire in two days. Session variables expire when user sessions end. To change these behaviors, enter new default and maximum time-out values on the Memory Variables page of the Administrator.
You can also specify whether to use J2EE session variables. When you enable the J2EE session variables, ColdFusion creates an identifier for each session and does not use the CFToken or CFID cookie value. For more information, see the Developing ColdFusion Applications.You can also determine how ColdFusion stores the session variables - in memory or Redis. Select an option from the Session Storage drop-down list. For more information, see External session storage.
Note:
When using J2EE sessions, ensure that the session time out, specified in the WEB INF/web.xml session-timeout element, is longer than the session time out specified in the ColdFusion Administrator, and longer than any sessiontimeout attribute specified in a cfapplication tag.
Use the Mappings page of the ColdFusion Administrator to add, update, and delete logical aliases for paths to directories on your server. ColdFusion mappings apply only to pages that ColdFusion processes with the cfinclude and cfmodule tags. If you save CFML pages outside the web_root directory (or whatever directory is mapped to "/"), you add a mapping to the location of those files on your server.
Assume that the "/" mapping on your server points to C:\coldfusion2016\wwwroot, but that all of your ColdFusion header pages reside in C:\2002\newpages\headers. Add a mapping in the ColdFusion Administrator that points to C:\2002\newpages\headers, for ColdFusion to find the header pages. For example, add a mapping for /headers that points to C:\2002\newpages\headers. In the ColdFusion pages located in C:\coldfusion2016\wwwroot, you reference these header pages using /headers in your cfinclude and cfmodule tags.
Note:
ColdFusion mappings are different from web server virtual directories. For information on creating a virtual directory to access a given directory using a URL in your web browser, consult your web server documentation.
The ColdFusion Enterprise Edition supports mail-server failover, as well as additional mail delivery options.
The ColdFusion implementation of SMTP mail uses a spooled architecture. This means that when a cfmail tag is processed in an application page, the messages generated might not be sent immediately. If ColdFusion has a large queue, delivery could occur after some delay.
Note: For more information about the cfmail tag, see Sending SMTP e-mail with the cfmail tag in Sending and Receiving E-Mail in the Developing ColdFusion Applications. |
The following table describes basic mail server settings:
Option |
Description |
---|---|
Mail Server |
Enter a valid mail server for sending dynamic SMTP mail messages in the text box. You can enter an Internet address, such as mail.company.com, or the IP address of the mail server, such as 127.0.0.1. |
Username |
Enter the user name for the mail server, if necessary. |
Password |
Enter the password for the mail server, if necessary. |
Sign |
Select this check box to configure ColdFusion to digitally sign your mails. |
Keystore |
Location of the Keystore containing the private key and certificate. The supported type is JKS (java key store) and pkcs12. |
Keystore Password |
Keystore password. |
KeyAlias |
Alias of the key with which the certificate and private key is stored in Keystore. If it is not specified then the first entry in the Keystore is be picked up. |
KeyPassword |
Password with which the private key is stored. If it is not specified, KeystorePassword is used as KeyPassword. |
Verify Mail Server Connection |
Verifies that ColdFusion can connect to your specified mail server after you submit this form.Even if you do not use this option, send a test message to verify that your mail server connection works. |
Server Port |
Enter the number of the port on which the mail server is running. Contact your server administrator if you are unsure of the appropriate port number. |
Backup Mail Servers (Enterprise Edition only) |
Enter zero or more backup servers for sending SMTP mail messages. You can enter an Internet address, such as mail.company.com, or the IP address of the mail server, such as 127.0.0.1. Separate multiple servers with a comma. If the mail server requires authentication, prepend the mail server with the user name and password, as follows:username:password@mailserveraddress_To use a port number other than the default (25), specify _mailserveraddress:portnumber |
Maintain Connection To Mail Server(Enterprise Edition only) |
Keeps mail server connections open after sending a mail message. Enabling this option can enhance performance when delivering multiple messages. |
Connection Timeout (seconds) |
Enter the number of seconds that ColdFusion should wait for a response from the mail server before timing out. |
Enable SSL Socket Connections To Mail Server |
Enables SSL encryption on the connections to the mail server. |
Enable TLS Connection To Mail Server |
Enables Transport Level Security (TLS) on the connection to the mail server. |
The following table describes mail server spool settings:
Option |
Description |
---|---|
Spool Interval (Seconds) |
Enter the interval, in seconds, at which you want the mail server to process spooled mail. |
Mail Delivery Threads(Enterprise Edition only) |
Enter the maximum number of simultaneous threads used to deliver spooled mail. |
Spool Mail Messages For Delivery To(Memory spooling available for Enterprise Edition only) |
Routes outgoing mail messages to the mail spooler. If you disable this option, ColdFusion delivers outgoing mail messages immediately. In ColdFusion Enterprise Edition, you can spool messages to disk (slower, but messages persist across shutdowns) or to memory (faster, but messages do not persist). You can override this setting in the cfmail tag. |
Maximum Number Of Messages Spooled To Memory(Enterprise Edition only) |
Enter the maximum number of messages that spool to memory before switching to disk spooling. |
View Undelivered Mail |
Click to view undelivered mails. |
Select preferences for handling mail logs, as described in the following table:
Option |
Description |
---|---|
Error Log Severity |
From the drop-down list object, select the type of SMTP-related error message to write to a log file. The options are the following:
|
Log All Mail Messages Sent By ColdFusion |
Saves to a log file the To, From, and Subject fields of all e-mail messages. |
ColdFusion writes sent-mail and mail-error logs to the following directories:
Log |
Description |
---|---|
mailsent.log |
Records sent e-mail messages. |
mail.log |
Records general e-mail errors. |
Select preferences for the default mail character set, as described in the following table:
Option |
Description |
---|---|
Default CFMail CharSet |
From the drop-down list object, select the default character set that the cfmail tag uses. The default value is UTF-8. If most of your e-mail clients use a specific character set, you can use this setting to switch to that locale-specific character set. For example, Japanese mail is typically sent using the ISO-2022-JP character set. |
Information that is read more often than written is a good candidate for scheduled tasks. Instead of executing a query to a database every time the page is requested, ColdFusion renders the static page with information that the scheduled event generates. Response time is faster because no database transaction takes place.
You can run scheduled tasks once; on a specified date; or at a specified time, daily, weekly, or monthly; daily; at a specified interval; or between specified dates.
When a scheduled page executes, ColdFusion writes a message to a log file called schedule.log automatically. This file identifies the name of the scheduled action, the page to be executed, and whether the task scheduled executed successfully.You can pause and resume scheduled tasks.
The Scheduled Task page lets you create, edit, pause, resume, and delete scheduled tasks. This page has the following areas:
Area |
Description |
---|---|
Schedule New Tasks |
Click to add new scheduled task. |
Actions |
Click the icons to run, pause, edit or remove the schedule task. |
Task Name |
Identifies the names of the existing tasks scheduled to run. |
Duration |
Identifies the duration of the task to run. |
Interval |
Identifies how often this task runs. The values for this column can be Once, Daily, or DailyEvery. |
Application Level Scheduled Tasks:Provides a list of application-specific tasks that you have scheduled, with task details in tabular format. The table provides details such as actions, application name, group, task name, duration, interval, last run, next run, repeat count, and if cluster is enabled.
Note: Application-specific tasks cannot be created using ColdFusion Administrator. But you can pause, resume, or delete the tasks. |
Create Tables for Cluster Setup:Check to create scheduler-specific tables for cluster.
Note: Enable this option only for one node in the cluster. Otherwise, the tables are overridden. If you have created tables from one node, in other nodes you need to only select and choose the data source. All nodes will point to the same data source and therefore will be part of the cluster. |
Add/Edit Scheduled Task page lets you add or edit task. Click Submit after you specify the following tasks. When the page loads for the first time, you are provided with only minimum options to create the task. Click Show Additional Settings to list all settings.
Option |
Description |
---|---|
Task Name |
Enter a name for the task in the Task Name text box. |
Duration |
Enter the start and end dates for the task. The end date is optional. If you want this task to execute continuously, leave the End Date text box blank. |
Frequency |
Select the schedule for running this task:
|
URL |
Enter the URL for the ColdFusion page that you want to execute. You can execute a local page or a page on a remote ColdFusion Server, assuming that you have the proper access rights. |
Username |
(Optional) Specify a user name only if the page you want to execute is in a secure location. |
Password |
(Optional) Specify a password only if the page you want to execute is in a secure location. |
Timeout |
(Optional) Specify a timeout setting. This helps prevent requests from stalling due to an overloaded web server, a network problem, or a page that takes too long to execute. |
Proxy Server: Port |
(Optional) If this request must be routed through a proxy server, enter the URL and Port number of that proxy server. |
Publish; File |
(Optional) To publish an output file of this task, select the Save Output to a File option and then, in the File text box, enter the full path and filename of the output file. Note that the Publish file in scheduled tasks can now only have .txt and .log extensions by default. You can add more extensions in cfusion\lib\neo-cron xml. |
Resolve URL |
(Optional) Select the Resolve URL option to replace any relative URLs used in links returned in the result page to absolute URLs. |
Group |
The group to which the scheduled tasks belong. Ensure that the combination of task name and group are unique. |
Crontime |
Specify task scheduling time in cron job syntax. |
Overwrite |
If not selected, creates new output files every time the task executes.Select to overwrite the existing output file, instead of creating a new one. |
Eventhandler |
A CFC file whose pre-defined methods are invoked for various events while running the task. The path you specify can be relative to webroot for example, schedulerdemo.eventhandler, or use a ColdFusion mapping. |
Exclude |
Comma-separated list of dates or date range for exclusion in the schedule period. |
On Misfire |
Specify what the server has to do if a scheduled task misfires. |
On Exception |
Specify what to do if a task results in error. |
On Complete |
The action to be performed after the completion of current task. Specify the details in the following format:Task1:Group1,Task3:Group3 |
Priority |
An integer that indicates the priority of the task. |
Retry Count |
The number of reattempts if the task results in an error. |
Cluster |
Enable to execute tasks in cluster setup. |
Use the ColdFusion Administrator (Server Settings > WebSocket) to specify the following WebSocket-related details:
Option |
Description |
---|---|
Port |
Port that the WebSocket server listens to. |
Max Data Size |
Data size of packets sent/received. |
Start Flash Policy Server |
Start Flash cross-domain Policy Server on port 1243. This is required for Flash fallback if there is no native WebSocket support at the client side. |
Flash Port |
If Flash Policy server is to be run on a different port other than the default one, it can be configured in neo-websocket.xml file located in <cf_home>/cfusion/lib directory. |
The following table describes the caching and thread settings for the ColdFusion charting and graphing server:
Option |
Description |
---|---|
Cache Type |
Set the cache type. Charts can be cached either in memory or to disk. Memory caching is faster, but more memory intensive. |
Maximum Number Of Cached Images |
Specify the maximum number of charts to store in the cache. After the cache is full, if you generate a new chart, ColdFusion discards the oldest chart in the cache. |
Max Number Of Charting Threads |
Specify the maximum number of chart requests that can be processed concurrently. The minimum number is 1 and the maximum is 5. (Higher numbers are more memory-intensive.) |
Disk Cache Location |
When caching to disk, specify the directory in which to store the generated charts. |
ColdFusion automatically registers Acrobat built-in fonts and fonts located in typical font locations (such as the Windows\fonts directory). However, if your server has additional fonts installed in nonstandard locations, you register them with the ColdFusion Administrator so that the cfdocument and cfreport tags can locate and render PDF and FlashPaper reports.
This page contains the following topics:
Area |
Description |
---|---|
New Font/Font Directory |
Specifies a fully qualified path to a directory that contains font files or to a specific font file. The ColdFusion Administrator lets you register the following types of font formats:
|
Font Family |
High-level font name (for example, Arial or Times New Roman). |
Font Face |
A specific font face (for example, Arial Italic or Times New Roman Bold). |
PostScript Name |
Specifies the PostScript name of the font. |
Font Type |
Specifies the font type (for example, TrueType or Adobe Built-In) |
Usable In |
Specifies whether the font is usable in PDF, FlashPaper, or both formats. Note that Adobe built-in fonts are not usable in FlashPaper output format. |
Path |
Fully qualified path to the font file. |
The Font Management page also displays the built-in Acrobat fonts, which are available for PDF only.For more information on reporting in ColdFusion, see Creating Reports and Documents for Printing in the Developing ColdFusion Applications.
ColdFusion can create documents and reports in both PDF and FlashPaper format. Both of these formats require that the server computer have access to the fonts used in the HTML styles (cfdocument tag) or the report definition (ColdFusion Report Builder). ColdFusion requires access to these fonts to properly render text in PDF and FlashPaper documents and, when specified, to embed fonts into a PDF file.
The ColdFusion Administrator lets you register the following types of fonts:
Type |
File extension |
Description |
Usable in |
---|---|---|---|
True Type |
TTF |
Scaleable font format developed by Apple Computer and supported in all Macintosh and Windows operating systems. |
PDF and FlashPaper |
True Type Collection |
TTC |
A file that contains multiple TrueType or OpenType fonts |
PDF and FlashPaper |
Open Type |
OTF |
An extension of the TrueType font format. |
PDF and FlashPaper |
Adobe printer font |
PFB |
Adobe printer font |
PDF only |
Adobe Font Metrics |
AFM |
A font format that contains general font information and font metrics information. Typically used on Unix only. |
PDF only |
The Font Management page also displays the built-in Acrobat fonts, which are available for PDF only. ColdFusion does not use PFM or FFT fonts.
The ColdFusion Administrator automatically displays the fonts discovered in platform-specific default locations, as follows:
Report developers can optionally specify that ColdFusion embed fonts in the PDF file (FlashPaper always embeds fonts). When using the cfdocument tag, fonts are embedded if fontEmbed is set to yes or selective. When using reports defined in the Report Builder, fonts are embedded if specified in the report definition file.Embedding fonts increases file size, but ensures that reports display appropriately regardless of whether or not client computers have the fonts installed.
Note: Some font licenses prohibit embedding. ColdFusion does not embed fonts marked as not-for-embedding. |
If fonts are not embedded in the PDF file, fonts must be installed on the client computer to ensure that reports display appropriately.Most Windows computers ship with Internet Explorer, which includes the Microsoft Core Fonts, a set of TrueType fonts.
If you install ColdFusion on a UNIX computer you must ensure that the appropriate fonts are installed, even if the computer provides console access only.For more information on TrueType fonts for UNIX, see http://corefonts.sourceforge.net/.
The ColdFusion Report Builder has no automatic knowledge of fonts available on the server so the developer building the report definition must consult the ColdFusion MX Administrator to determine which fonts are available on the server and, if necessary, register fonts in the Administrator or install fonts on the computer that runs Report Builder.
Depending on whether your ColdFusion server is installed on a local or remote server, you can configure OpenOffice with your ColdFusion server instance.
For more information about configuring OpenOffice with ColdFusion, see Configuring OpenOffice in Installing ColdFusion.
The Java and JVM page lets you specify the following settings, which enable ColdFusion to work with Java:
Option |
Description |
---|---|
Java Virtual Machine Path |
The absolute file path to the location of the Java Virtual Machine (JVM) root directory. The default is cf_root/runtime/jre. |
Minimum JVM Heap Size |
The JVM initial heap size. |
Maximum JVM Heap Size |
The JVM maximum heap size. The default value is 512 MB. |
ColdFusion Class Path |
The file paths to the directories that contain the JAR files that ColdFusion uses. Specify either the fully qualified name of a directory that contains your JAR files or a fully qualified JAR filename. Use a comma to separate multiple entries. |
JVM Arguments |
The arguments to the JVM. Use a space to separate multiple entries (for example, -Xint -Xincgc). |
Restart ColdFusion server after making the changes.
aArgs[i] contains '-Xms' |
When you update the Java and JVM Settings page, ColdFusion writes the changes to jvm.config, which is located in cf_root\runtime\bin. Before ColdFusion saves your changes, it saves a copy of the current jvm.config file as jvm.bak. If your changes prevent ColdFusion from restarting, use jvm.bak to restore your system. For example, rename jvm.config to jvm.config_BAD, and then rename jvm.bak to jvm.config.
ColdFusion filters out default settings for the jvm.args attribute from the jvm.config file, including the following:
To use Server Monitor or Multiserver Monitor on a J2EE deployment of ColdFusion on Oracle 10g, in JVM Arguments set -Doc4j.jmx.security.proxy.off=true
The Settings Summary page shows all ColdFusion configuration settings. Click a group name to open the Administrator section of that group, where you can edit settings. This page is not enabled in the Standard Edition.
In ColdFusion, you can export the server settings to PDF by clicking the Save As PDF button on this page.
The Data and Services section of the Administrator is the interface for ColdFusion, data sources, and search and indexing features. The following table describes some common tasks that you can perform in the Data & Services section of the Administrator:
Task |
Description |
---|---|
Create and manage JDBC data sources |
The Data Sources page lets you establish, edit, and delete JDBC data source connections for ColdFusion. For more information, see Data Source Management for ColdFusion. |
Create and maintain ColdFusion collections |
The ColdFusion Collections page lets you create and delete Solr collections and perform maintenance operations on collections that you create. For more information, see ColdFusion Collections page. |
Define mappings for web services |
The Web Services page lets you produce and consume remote application functionality over the Internet. For more information, see Web Services page. |
Specify settings to integrate with Adobe Flex applications |
The Flex Integration page lets you specify which Flex integration features to enable and which IP addresses can perform data service operations. For more information, see Flex Integration page. |
The Data Sources page lets you create, edit, and delete JDBC data sources. Before you can use a database in a ColdFusion application, you register the data source in the ColdFusion Administrator. For more information, see Data Source Management for ColdFusion.
Before you can access a database with a ColdFusion application, perform the following:
Use this page to create and manage your Solr collections.
ColdFusion lets you manage your collections from the Administrator. You can index, optimize, purge, reload, or delete Solr collections that are connected to ColdFusion. You use the icons in the Actions column to perform the following actions:
Action |
Description |
---|---|
Reload |
Reloads the collection. |
Index |
Analyzes the files in a collection and assembles metadata and pointers to the files. |
Optimize |
Reclaims space left by deleted and changed files by consolidating collection indexes for faster searching. You should optimize collections regularly. |
Purge |
Deletes all documents in a collection, but not the collection itself. Leaves the collection directory structure intact. |
Delete |
Deletes a collection. |
ColdFusion includes Solr, which provides indexing and searching technology. This enables creating, populating, and managing collections of indexed data that are optimized for fast and efficient site searches.
A collection is a logical group of documents and metadata about the documents. The metadata includes word indexes, an internal documents table of document field information, and logical pointers to the document files.
For more information about building search interfaces, see Building a Search Interface and Solr search support in the Developing ColdFusion Applications.
If the ColdFusion Collections page is unable to retrieve collections, ensure that Solr Search Server is running.
After you create a collection, use the Solr Collections section to populate (or index) it, with data from text and binary files, in a directory that you specify. A collection comprises metadata that describes indexed documents. Data from a ColdFusion query can be indexed only by using the ColdFusion cfindex tag. To populate (index) a collection,
The Solr server instance runs as a separate server, which you can start or stop as a service. You can configure your Solr collection for indexing and search capabilities using ColdFusion Administrator.
The ColdFusion Administrator implements Solr support using the following panels in the Data & Services area:
Use the Solr Server page to specify the Solr server host name and home directory. You can also configure advance settings including the admin port, web application name, and buffer limit.
Click Show Advance Settings to add the following details:
Migrate collections
To migrate the collection, browse and select the old Solr home and then click Migrate Solr Collections.For details, see "Solr enhancements in ColdFusion 10" in Developing Adobe ColdFusion Applications.
Web services let you publish and consume remote application functionality over the Internet. With a web service, you can make a request to the remote application to perform an action. You can use the ColdFusion Administrator to register web services so that clients do not have to specify the entire WSDL URL when they reference the web service. For more information on publishing and consuming web services through ColdFusion, see ColdFusion Developer's Guide.
When you register a web service, you can shorten your code and change a web service URL without editing your code. For more information, see Using Web Services in the Developing ColdFusion Applications.
After you create the CFC you want to REST-enable, specify the folder for registering as web service in the ColdFusion Administrator.
Browse and select the application path or root folder where ColdFusion would search for CFCs.When you specify a folder, all CFCs in that folder or subfolders for which you have specified rest or restPath are registered.
After you specify the details, click Add Service to register. The Active ColdFusion REST Services section specifies the details of all registered web services.
After you register, all CFCs are published as RESTful services. On subsequent startups, the registered services automatically get published.
Use this page to specify which Flex integration features to enable and which IP addresses can perform data-service operations. If you enable Adobe LiveCycle Data Services ES support, but do not specify any IP addresses, only processes on the local computer can connect to the LiveCycle Data Services ES server in ColdFusion.
Option |
Description |
---|---|
Enable Flash Remoting Support |
Specifies whether to enable Flash clients to connect to this ColdFusion server and invoke methods in ColdFusion components (CFCs). |
Enable Remote LiveCycle Data Management Access |
Specifies whether to enable a LiveCycle Data Services ES server to connect to this ColdFusion server and invoke methods in CFCs to fill, sync, get, or count records in a result set used in a Flex application. Enable this option only if you are running LiveCycle Data Services ES remotely. |
Server Identity |
Specifies the ColdFusion server on which you want to enable Flex Data Management Support. |
Enable RMI Over SSL For Data Management |
To encrypt communication between ColdFusion and Flex, enable Secure Sockets Layer (SSL). |
Select IP Addresses Where LiveCycle Data Services Are Running |
Specifies which LiveCycle Data Services ES servers can connect to the LiveCycle Data Services ES support in ColdFusion. If you do not specify a list of allowed IP addresses, only processes on the local computer can connect to the LiveCycle Data Services ES support in ColdFusion |
To use SSL, create a keystore file. The keystore is a self-signed certificate. (You do not need a certificate signed by a Certificate Authority, although if you do use one, you do not need to configure Flex as indicated in the following steps.) The information in the keystore is encrypted and can be accessed only with the password that you specify. To create the keystore, use the Java keytool utility, which is included in the Java Runtime Environment (JRE).
To generate the SSL server (ColdFusion) keystore file, use the keytool utility, with a command similar to the following:
keytool -genkey -v -alias FlexAssembler -dname "cn=FlexAssembler" -keystore cf.keystore -keypass mypassword -storepass mypassword |
The following table describes the parameters of the keytool utility:
Parameter |
Description |
---|---|
-alias |
The name of the keystore entry. You can use any name for this, as long as you are consistent when referring to it. |
-dname |
The Distinguished Name, which contains the Common Name (cn) of the server. |
-keystore |
The location of the keystore file. |
-keypass |
The password for your private key. |
-storepass |
The password for the keystore. The encrypted storepass is stored in ColdFusion configuration files. |
-rfc |
Generates the certificate in the printable encoding format. |
-file |
The name of the keystore file. |
-v |
Generates detailed certificate information |
Place the certificate you created in the file that the JVM uses to determine what certificates to trust. The file in which you place the certificate (usually named cacerts), is located in the JRE, in the lib/security folder.
To export the keystore to a certificate, use the keytool utility, with a command similar to the following:
keytool -export -v -alias FlexAssembler -keystore cf.keystore -rfc -file cf.cer |
To import the certificate into the JRE cacerts file for your server, use the keytool utility, with a command similar to the following:
keytool -import -v -alias FlexAssembler -file cf.cer -keystore C:\fds2\UninstallerData\jre\lib\security\cacerts |
Use the Debugging Settings and Debugging IPs pages to configure ColdFusion to provide debugging information for every application page that a browser request. Specify debugging preferences by using the pages as follows:
On the Logging Settings page, specify a directory for error log files that can contain useful debugging information.
Note: Enabling debugging affects performance. It is advised that you do not enable debugging on a production server. |
The Debug Output Settings page provides the following debugging options:
Option |
Description |
---|---|
Enable Robust Exception Information |
Displays detailed information in the exceptions page, including the physical path and URI of the template, the line number and snippet, the SQL statement used (if any), the data source name (if any), and the Java stack trace. |
Enable Request Debugging Output |
Enables the ColdFusion debugging service. |
Select Debugging Output Format |
Controls debugging format. Select either of the following formats:
|
Report Execution Times |
Reports execution times that exceed a specified time limit. |
General Debug Information |
Show general information about the ColdFusion MX version, template, timestamp, user locale, user agent, user IP, and host name. |
Database Activity |
Shows the database activity for the SQL Query events and Stored Procedure events in the debugging output. |
Exception Information |
Shows all ColdFusion exceptions raised for the request in the debugging output. |
Tracing Information |
Shows trace event information in the debugging output. Tracing lets you track program flow and efficiency using the cftrace tag. |
Timer Information |
Shows output from the cftimer tag. |
Flash Form Compile Errors And Messages |
(Development use only) Displays ActionScript errors in the browser when Flash forms are compiling, and affects the display time of the page. |
Variables |
Displays information about parameters, URL parameters, cookies, sessions, and CGI variables in the debugging output. |
Enable Performance Monitoring(Server configuration only) |
Enables the standard NT Performance Monitor application to display information about a running server. TIP: Restart ColdFusion after you change this setting. |
Enable CFSTAT(Server configuration only) |
Shows performance information on platforms that do not support the NT Performance Monitor. For more information, see Using the cfstat utility. TIP: Restart ColdFusion after you change this setting. |
The cfstat command-line utility provides real-time performance metrics for ColdFusion. The cfstat utility uses a socket connection to obtain metric data. You can use the cfstat utility to display information that ColdFusion writes to the System Monitor without using the System Monitor application. The following table lists the metrics that the cfstat utility returns:
Metric abbreviation |
Metric name |
Description |
---|---|---|
Pg/Sec |
Page hits per second |
The number of ColdFusion pages processed per second. You can reduce this limit by moving static content to HTML pages. |
DB/Sec |
Database accesses per second |
The number of database accesses per second that ColdFusion makes. Any difference in complexity and resource load between calls is ignored. |
Req Q'ed |
Number of queued requests |
The number of requests that are currently waiting for ColdFusion to process them. Lower values, which you can achieve with efficient CFML, are better. |
Req Run'g |
Number of running requests |
The number of requests that ColdFusion is currently actively processing. |
Req TO'ed |
Number of timed out requests |
The total number of ColdFusion requests that have timed out. Lower values, which you can achieve by aggressive caching, removing unnecessary dynamic operations and third-party events, are better. |
AvgQ Time |
Average queue time |
A running average of the time, in milliseconds, that requests wait for ColdFusion to process them. Lower values, which you can achieve with efficient CFML and enhanced caching, are better. Averages are displayed for the last two completed requests. |
AvgReq Time |
Average request time |
A running average of the time, in milliseconds, that it takes ColdFusion to process a request (including queued time). Lower values, which you can achieve with efficient CFML, are better. Averages are displayed for the last two completed requests. |
AvgDB Time |
Average database transaction time |
A running average of the time that ColdFusion spends on database-related processing of ColdFusion requests. Averages are displayed for the last two completed requests. |
Bytes In/Sec |
Bytes incoming per second |
The number of bytes that ColdFusion read in the last second (not an average). |
Bytes Out/Sec |
Bytes outgoing per second |
The number of bytes that ColdFusion wrote in the last second (not an average). |
Before you use the cfstat utility, ensure that you selected the Enable Performance Monitoring option in the ColdFusion Administrator (on the Debugging & Logging > Debugging Settings page). If you select this option, restart ColdFusion for this change to take effect.
The cf_root/bin directory contains the cfstat utility. From that directory, type cfstat and use the following switches:
Switch |
Description |
Comment |
---|---|---|
-n |
Suppress column headers. |
Useful for saving output to a file. |
-s |
Display output in a single line. |
Display a single line and delay display of the first line so the cfstat utility can display meaningful values in the per-second counters. |
# |
Where # is an integer, display output every # seconds. |
If you do not specify an integer, the cfstat utility returns one line. Specify this switch with or without the s switch. |
-x |
Display extended output breaking of different request threads. |
Available in ColdFusion Enterprise. It is ignored in ColdFusion Standard. |
-port |
Allows you to specify the port to which ColdFusion listens for cfstat communications. |
When using cfstat from two different ColdFusion server instances, their port numbers of the said server instances should be explicitly specified. |
This example runs the cfstat utility and displays a new line every 20 seconds:
cfstat 20 |
Use the Debugging IP Addresses page to restrict debugging output to one or more IP addresses. You can add and remove IP addresses.
To add a debugging IP address,
Click Remove Selected. The address no longer appears in the list.
Note:
If you do not specify IP addresses, and debugging options are active, ColdFusion displays debugging output for all users.
To use the ColdFusion Debugger that runs in Eclipse, select the Allow Line Debugging option.
Specify the port and the maximum number of simultaneous debugging sessions. Specify the debugger port in the JVM settings of your application server, for example:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=#portNum# |
To stop a currently running debugging session, click Stop Debugging.
For the changes that you specify on this page to take effect, restart the ColdFusion server.
Use the Logging Settings page of the Administrator to change ColdFusion logging options. The following table describes the settings:
Option |
Description |
---|---|
Log Directory |
Specifies the directory to which error log files are written. TIP: Restart ColdFusion after you change this setting. |
Maximum File Size (kb) |
Sets the maximum file size for log files. When a file reaches this limit, it automatically is archived. |
Maximum Number Of Archives |
Sets the maximum number of log archives to create. When they reach this limit, files are deleted in the order of oldest to newest. |
Log Slow Pages Taking Longer Than n Seconds |
Logs the names of pages that take longer than the specified interval to process. Logging slow pages can help you diagnose potential problems or bottlenecks in your ColdFusion applications. Entries are written to the server.log file. |
Log All CORBA Calls |
Logs all CORBA calls. |
Enable Logging For Scheduled Tasks |
Logs ColdFusion Executive task scheduling.
|
The Log Files page lets you perform operations on log files, such as searching, viewing, downloading, archiving, and deleting.
Click a Log File icon located in the Actions column of the Available Log Files table, to search, view, download, archive, or delete a log file.
Use the Logging Settings page to enable or disable administrative logging options, as the following table describes:
Option |
Description |
---|---|
Log directory |
Select this option to change the location where ColdFusion log files are written. The location that you specify in this field must have sufficient disk space and security privileges for the ColdFusion system service. |
Maximum file size (KB) |
Set the maximum file size for log files. When a file reaches this size, ColdFusion automatically archives it. |
Maximum number of archives |
Set the maximum number of log archives to create. After reaching this limit, ColdFusion deletes files in order of oldest to newest. |
(UNIX only) Use operating system logging facilities |
Select this option to log messages using the UNIX syslog logging facility. ColdFusion also writes log messages to the standard ColdFusion log files. |
Log slow pages taking longer than n seconds |
Specify the number of seconds that ColdFusion waits before logging the names of pages that take longer than the specified interval to process. Logging slow pages can help you diagnose potential problems in your ColdFusion applications. ColdFusion writes entries to server.log. |
Log all CORBA calls |
Select this option to log all CORBA calls. |
Enable logging for scheduled tasks |
Select this option to log ColdFusion Executive task scheduling. |
The following table describes the ColdFusion log files:
Log file |
Description |
---|---|
rdservice.log |
Records errors that occur in the ColdFusion Remote Development Service (RDS). RDS provides remote HTTP-based access to files and databases. |
application.log |
Records every ColdFusion error reported to a user. Application page errors, including ColdFusion syntax, ODBC, and SQL errors, are written to this log file. |
exception.log |
Records stack traces for exceptions that occur in ColdFusion. |
scheduler.log |
Records scheduled events that have been submitted for execution. Indicates whether task submission was initiated and whether it succeeded. Provides the scheduled page URL, the date and time executed, and a task ID. |
eventgateway.log |
Records events and errors related to event gateways. |
migration.log |
Records errors related to upgrading from a previous version of ColdFusion. |
migrationException.log |
Records errors related to running ColdFusion applications after upgrading from a previous version of ColdFusion. |
server.log |
Records errors for ColdFusion. |
customtag.log |
Records errors generated in custom tag processing. |
car.log |
Records errors associated with site archive and restore operations. |
mail.log |
Records errors generated by an SMTP mail server. |
mailsent.log |
Records messages that ColdFusion sends. |
flash.log |
Records entries for Flash Remoting. |
Use the icon for start/stop in the Actions column of the Log Files page to stop/start logging for a particular log type.
Option |
Description |
---|---|
Show Serverity |
Select one or more severity levels to filter. |
Keywords |
Enter one or more words in the Keywords text box. Click the Find drop-down list box, and select one of these options: exact phrase, any words, or all words. |
Applications |
If applicable, enter the application name to filter. If applicable, the application name appears as the fifth (entry) column in the log file. |
Thread IDs |
The thread identification numbers are used by Adobe Technical Support personnel to track and troubleshoot problems. The thread identification string appears as the fourth entry (column) in a log file. |
Most Recent |
Specifies the relative age of included messages. |
Date Range |
To display the log content for a specific date range, enter the start and end dates. Enter the dates in year-month-day format ( YYYY-MM-DD). For example, to specify April 21, 2002, enter: 2002-04-21. |
Time Span |
To show the log content for a specific time range, enter the start and end times. Enter the time span in hour-minute-second format ( HH:MM: SS). For example, to specify 2:00 P.M., enter 14:00:00. |
You can generate log files for the following services in ColdFusion 9.0.1:
System probes help you evaluate the status of your ColdFusion applications. Like scheduled tasks, they access a URL at a specified interval, but they can also check for the presence or absence of a string in the URL. If the URL contents are unexpected, or if an error occurred while accessing the URL, the probe can send an e-mail alert to the address specified on the System Probes page. The probe can also execute a script to perform a recovery action, such as restarting the server. All probe actions are logged in the logs/probes.log file. The System Probes page also displays the status of each probe.
Use the buttons in the Actions column in the System Probes table to perform the following actions:
Action |
Description |
---|---|
Edit |
Lets you edit the probe. |
Run |
Runs the probe immediately, even if it was previously disabled. |
Enable/Disable |
Starts and stops the probe from automatically executing at its specified interval. |
Delete |
Deletes the probe. |
Because probes run as scheduled ColdFusion tasks, they do not run if the server on which they are hosted crashes, or if the host web server crashes or otherwise does not respond.
Use the System Probes page to manage the ColdFusion system probes that were created to monitor the availability of a resource in your website.
Item |
Description |
---|---|
Define New Probe |
Click this button to create a probe configuration. |
Actions |
Click these buttons to run, edit, delete, or disable an existing probe configuration. |
Probe Name |
Shows the names of the ColdFusion probes created. |
Status |
Shows the current operating state of one or more configured probes per URL, as follows:
|
Interval |
Shows the period between probes. |
URL |
Identifies the URL path that each probe is monitoring. |
Notification |
Notification Email Recipients Specify the e-mail address of the recipient if a probe fails to connect to the specified URL. |
Specify the e-mail address of sender. By default, this address is the address specified on the Mail Server page. |
|
Probe.cfm URL |
Specifies the probe.cfm page that is located in the CFIDE directory. ColdFusion requires this page to successfully execute probe configurations. |
Probe.cfm Username |
If the CFIDE directory is secured, the user name for that directory is required. |
Probe.cfm Password |
If the CFIDE directory is secured, the password for that directory is required. |
In the System Probes table, select the name of the probe to suspend, and click the Disable Probe icon.
Option |
Description |
---|---|
Probe Name |
Provide a name for the probe configuration. |
Frequency |
Select the schedule for running this probe:
|
URL |
Identifies the URL path that each probe is monitoring. |
User Name |
Name If the URL is a secured path, specify the user name. |
Password |
If the URL is a secured path, specify the password. |
Timeout (sec) |
Specify the time, in seconds, to indicate how long the probe should wait before registering a failure. |
Proxy Server |
If this request must be routed through a proxy server, enter the URL and port number of that proxy server. |
Port |
Port number of the proxy server. |
Probe Failure |
Select this option to identify the arguments used to test the URL resource. |
Failure Actions |
Specify one or both of the following actions to occur when detecting a failure:
|
Publish |
Select to write output results to a file. |
File |
If the publish option is selected, specify the output filename. |
Reolve URL |
Select to maintain links to internal URLs remain intact.
|
The Code Analyzer page evaluates your ColdFusion pages for potential incompatibilities between ColdFusion 10 and previous versions of ColdFusion. It reviews the CFML pages that you specify and informs you of any potential compatibility issues. Additionally, the Code Compatibility Analyzer detects unsupported and deprecated CFML features, and outlines the required implementation changes that ensure a smooth migration.
Use the analyzer as follows:
The License Scanner page searches the local subnet to find other running instances of ColdFusion. You can use this information to determine whether the ColdFusion instances within the subnet are licensed appropriately.
The ColdFusion Administrator uses universal datagram protocol (UDP) multicast to collect license and version information from all ColdFusion instances running within the subnet.
The Server Monitoring section lets you run the following:
The Server Monitor is an Adobe SWF application that lets you track activities on a ColdFusion Server. You can identify information about the server, including requests, queries, memory usage, and errors. You can start and stop collecting server information and take snapshots of the server.
The Multiserver Monitor is another SWF application. It lets you track the status of several servers.
Use the Extensions section of the Administrator to configure ColdFusion to work with other technologies, such as Java and CORBA.
The Java Applets page of the Administrator lets you register applets and edit and delete applet registrations. Before you can use Java applets in your ColdFusion applications, register them in the Java Applets page.
When your applet is registered with ColdFusion, using the cfapplet tag in your CFML code is simple, because all parameters are predefined: Enter the applet source and the form variable name to use.
This page has the following areas:
To register or modify a Java applet in ColdFusion, use the Add/Edit Registered Java Applet page. Registering an applet lets you use the cfapplet tag.
Option |
Description |
---|---|
Applet Name |
Provide a name for the Java applet. |
Code |
Identify the name of the file that contains the applet subclass. This filename is relative to the code base URL. The *.class file extension is not required. |
Code Base |
Provide the URL of the code base; the directory that contains the applet components. The applet class files must be located within the web browser root directory; for example, http://<servername>/classes.Note that this field is not required if the Java applet components are contained in a JAR file. For more information, see the Archive option. |
Archive |
(Optional) If the Java applet components are stored in a jar file, enter the jar filename in the Archive text box. |
Method |
(Optional) Specify the method name in the applet that returns a string value. This method name is used in the name attribute of the cfapplet tag to populate a form variable with the method's value. If the applet has no method, leave this field blank. |
Height |
Enter a measurement in pixels for the vertical space for the applet. |
Width |
Enter a measurement in pixels for the horizontal space for the applet. |
Vspace |
Enter a measurement in pixels for the space above and below the applet. |
Hspace |
Enter a measurement in pixels on each side of the applet. |
Align |
Select an alignment option. |
Not supported message |
Specify a message that will be displayed by browsers that do not support Java applets. You can override this message with a different message notsupported attribute in the cfapplet tag. |
Parameter name |
Enter a name for each required applet parameter. Your Java applet typically provides the parameter name needed to use the applet. Enter each parameter in a separate parameter field. |
Value |
Enter a default value for every parameter name specified. Click Add to add the values for the parameters. Your applet documentation provides guidelines on valid entries.
|
Before you can use a CFX tag in ColdFusion applications, register it. Use the CFX Tags page to register and manage ColdFusion custom tags built with C++ and Java.
You can build CFX tags in the following two ways:
Area |
Description |
---|---|
Register Java CFX |
Click this button to register a CFX Java tag that you want to include in your ColdFusion applications. |
Register C++ CFX |
Click this button to register a CFX C++ tag that you want to include in your ColdFusion applications. |
Actions |
Click the Edit icon to edit the registration fields of a CFX tag. Click the Delete icon to remove the registration of a CFX tag. |
Tag Name |
Click the name of a CFX tag to view or edit the tag's registration fields. |
Type |
Identifies the type of language used to build the CFX tag (C++ or Java). |
Description |
Identifies the use of the CFX tag. |
Option |
Description |
---|---|
Tag Name |
Enter the tag name (after the cfx_prefix). Provide a name for the CFX tag that you are registering. |
Class Name |
Enter the class name (without the .class extension) that implements the interface. The class file should be accessible from the Class Path setting on the Java and JVM page. You typically package the .class file in a .jar file and save it in the cf_root/lib (server configuration) or cf_webapp_root/WEB-INF/cfusion/lib (J2EE configuration) directory. |
Description |
Provide a message that identifies the use of this CFX tag. |
Option |
Description |
---|---|
Tag Name |
Provide a name for the CFX tag that you are registering. Tag names must be prefixed with cfx_. |
Server Library (.dll) |
Enter the path to the library, or click Browse Server to locate the library that you want to use. |
Procedure |
Enter the procedure that implements the CFX tag. The procedure name must correspond with the procedure associated with the DLL or shared object you have specified. Notice that procedure names are case sensitive. |
Keep Library Loaded |
Select this option to retain the library in RAM. |
Description |
In this text box, provide a message that identifies the use of this CFX tag.
|
Use the Custom Tag Paths page of the Administrator to add, edit, and delete custom tag directory paths.
By default, all custom tags are stored under the cf_root/ CustomTags (server configuration) or cf_webapp_root/WEBINF/cfusion/CustomTags (J2EE configuration) directory. However, you can specify additional paths to your custom tag locations by using this page. The following table describes the areas on the page:
Area |
Description |
---|---|
New Path |
Specify the path of your custom tags. |
Browse Server |
Click to browse your system fro the location of your custom tags. |
Add Path |
Click to add the path specified in the path text box. |
Actions |
Click Exit to edit or Delete to remove a selected path. |
Path |
Identifies the custom tag paths registered in ColdFusion.
|
Use the CORBA Connectors page to register, edit, and delete CORBA connectors. Register CORBA connectors before you use them in ColdFusion applications and restart the server when you finish configuring the CORBA connector.
ColdFusion loads object request broker (ORB) libraries dynamically by using a connector, which does not restrict ColdFusion developers to a specific ORB vendor. The connectors depend on the ORB runtime libraries provided by the vendor. A connector for Borland Visibroker is embedded within ColdFusion. Make sure that the ORB runtime libraries are in cf_root/runtime/lib (server configuration) or cf_webapp_root/WEB-INF/cfusion/lib (multiserver and J2EE configurations).
The following table contains information about the libraries and connectors:
Operating System |
Vendor |
ORB |
ColdFusion connector |
ORB library |
---|---|---|---|---|
Windows NT and later |
Borland |
VisiBroker 4.5 |
coldfusion.runtime.corba.VisibrokerConnector (embedded) |
vbjorb.jar |
Solaris |
Borland |
VisiBroker 4.5 |
coldfusion.runtime.corba.VisibrokerConnector (embedded) |
vbjorb.jar |
Example of a CORBA connector configuration for VisiBroker:
ORB Name visibroker |
ColdFusion includes the vbjorb.properties file, which contains the following properties that configure the ORB:
org.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB SVCnameroot=namingroot |
The Event Gateways section of the Administrator lets you configure event gateway settings, gateway types, and gateway instances.
ColdFusion event gateways are ColdFusion elements that let ColdFusion react to or generate external events or messages in an asynchronous manner. Event gateways let a ColdFusion application handle information that does not come through an HTTP request. For example, you can use event gateways to handle instant messages, short messages from mobile devices, or messages sent to a TCP/IP port. ColdFusion includes several event gateways, including an SMS (Short Message Service) gateway for sending short, often text, messages to and from wireless devices, such as mobile phones or pagers and a gateway for the XMPP (Extensible Messaging and Presence Protocol) instant messaging protocol.
The Event Gateways Settings page lets you configure settings for all event gateways, and start or stop the Short Message Service (SMS) test server. The following table describes the settings:
Option |
Description |
---|---|
Enable ColdFusion Event Gateway Services |
Specifies whether the service is enabled. Changing this setting restarts the service. |
Event Gateway Processing Threads |
Specifies the maximum number of threads used to execute ColdFusion functions when an event arrives. A higher number uses more resources, but increases event throughput. |
Maximum Number Of Events To Queue |
Specifies the maximum number of events allowed on the event queue. If the queue length exceeds this value, gateway events are not be added to the processing queue. |
Start/Stop SMS Test Server |
Starts and stops the short message service (SMS) test server. |
The Gateways Types pages let you configure the types of gateways available on your system. After you configure a type, you can create any number of gateway instances of that type.
Option |
Description |
---|---|
Type Name |
Specifies a name for the event gateway type (for example, SMS for the SMS event gateway). |
Description |
Specifies a description for the gateway type. |
Java Class |
Specifies the fully qualified name of the gateway class full Java class name (for example, coldfusion.eventgateway.sms.SMSGateway for the SMS event gateway). |
Startup Timeout nSeconds |
Specifies a startup timeout, in seconds. |
Stop on Startup Timeout |
If enabled, ColdFusion stops the gateway class if it times out on startup. If disabled, ColdFusion logs a warning message when the timeout value is exceeded. |
The following table describes the event gateway types that ColdFusion includes:
Gateway type |
Description |
---|---|
CFML |
Triggers asynchronous events from ColdFusion. |
DataManagement |
Lets a ColdFusion application notify a Flex destination about changes in the data that the destination manages. |
DataServicesMessaging |
Sends messages to and receive messages from Flex applications. |
FMS Gateway |
Modifies data through the ColdFusion application or the Flash client, and reflects the change in the Flash Media Server shared object. |
SMS |
Used to send and receive SMS messages. |
SAMETIME |
Used to send and receive instant messages through Lotus SameTime. |
XMPP |
Used to send and receive instant messages through the Extensible Messaging and Presence Protocol (XMPP). |
Samples |
Sample gateway types, including the following:
|
The Gateway Instances page lets you configure ColdFusion event gateway instances to direct events from various sources to ColdFusion components (CFCs) that you have written. The following table describes the settings:
Option |
Description |
---|---|
Gateway ID |
A name for the event gateway instance. You use this value in the ColdFusion GetGatewayHelper and SendGatewayMessage functions. |
Gateway Type |
The event gateway type. |
CFC Path |
The absolute path to the listener CFC that handles incoming messages. |
Configuration File |
(Optional) Configuration file, if necessary for the event gateway instance. |
Startup Mode |
The event gateway startup status, as follows:
|
The Security section of the Administrator lets you configure the security frameworks of ColdFusion.
For more information on security, see Administering ColdFusion Security.
Use the RDS page to enable and disable password-restricted RDS access to server resources from Adobe Macromedia Dreamweaver MX , Adobe Macromedia HomeSite+ , ColdFusion Extensions for Eclipse, or the ColdFusion Report Builder, and to change the RDS password.
You can also configure all users to use a single RDS password, or allow only users defined in the User Manager to have access through RDS. The minimum character limit is 5 and the maximum character limit is 50.
In ColdFusion 10, you can enable/disable RDS using ColdFusion Administrator. That is, you can modify the settings that you made at the time of installation using ColdFusion Administrator.
The RDS page on the ColdFusion Administrator (Security > RDS) lets you enable/disable RDS service.
You use the Sandbox Security page (called Resource Security in the Standard Edition) to specify security permissions for data sources, tags, functions, files, directories, IP addresses, ports, and runtime permissions.
Sandbox security uses the location of your ColdFusion pages to determine functionality. A sandbox is a designated area (CFM files or directories that contain CFM files) of your site to which you apply security restrictions. By default, a subdirectory (or child directory) inherits the sandbox settings of the directory one level above it (the parent directory). If you define sandbox settings for a subdirectory, you override the sandbox settings inherited from the parent directory.
Use sandbox security to control access to the following:
IP addresses and ports
You can also edit runtime permissions for ColdFusion pages.
Note: If you have enabled sandbox security and want to use the Administrator API, enable access to the CFIDE/adminapi directory. |
For details, see Using sandbox security
Use the User Manager page to specify the user name, password, description, access rights, exposed services, sandboxes, and allowed roles for individual users. This page is especially useful for web hosting when multiple ColdFusion applications are on one server, each maintained by a different user or organization.
You can grant access to the ColdFusion Administrator, which also grants access to the Administrator API.
If the administrator revokes the role of a user while the user is logged in, the revocation takes effect only when the user logs in again.
The default user ID of an administrator is admin. To change the administrator user ID, add the following in the neo-security.xml file, replacing admin with the user ID to use:
<var name='admin.userid.root'> |
The User Manager lets you create users that have individually tailored access to portions of the ColdFusion Administrator, the Administrator API, or RDS access.
Note: To grant ColdFusion Administrator permissions to multiple users, in addition to creating users on the User Manager page, you must select the Separate Username And Password Authentication option on the Security > Administrator page. Similarly, you must select the Separate Username And Password Authentication option on the RDS page to grant RDS access to multiple users. |
Click Add User.
Note: To select multiple contiguous sandboxes or roles, press the Shift key while making selections. To select multiple noncontiguous sandboxes or roles, press the Control key while making selections. |
After you create a user, you must log into the ColdFusion Administrator using both a username and password. The default username for the root administrator is admin. To change it, you must edit the neo-security.xml file by changing the string "admin" in admin.userid.root, as follows:
<var name="admin.userid.root"> |
When you grant access to specific Administrator pages, the user sees only those pages after logging in to the Administrator. When you grant Administrator API access and select roles, the user can access the API only for the pages you specified.
For information editing existing user configuration, see Edit User Configuration.
If you change the pages or sandboxes to which a user is allowed access while that user is logged in to the Administrator, the changes take effect only after the user logs out, and then logs in again. For details about creating sandboxes, see Administering ColdFusion Security.
ColdFusion exposes existing enterprise services as web services. You can access these services using SOAP and AMF/Flash remoting. You can select the services available to a user from the Exposed Services section. By default, all the services are listed in the Allowed Services list box. Press CTRL and select the services that you do not want the user to avail and click the >> button.Now, click Edit User to implement the changes to the user settings. The following are the exposed services:
In the User Manager page, click either the user name like in the User column or the Edit icon in the Action column. The User Manager page opens in Edit mode, where you can reconfigure the user account settings such as password, RDS Administrator access, adding sandboxes, and resetting the exposed services for the user.
Note: You would not be able to reset the user authentication type in the edit mode. |
Specify client IP addresses that have the permission to access exposed services.
Also see IP Restriction for CFIDE URLs.
The Packaging and Deployment section of the Administrator lets you create and deploy CAR files. You can also create J2EE EAR or WAR files that include an existing ColdFusion application and the ColdFusion runtime system.
The ColdFusion Archives page includes tools that let you archive and deploy ColdFusion applications, configuration settings, data source information, and other types of information to back up your files faster. The complete list of archivable information includes the following:
After you archive the information, you can use the Administrator to deploy your web applications to the same ColdFusion server or to a ColdFusion server running on a different computer. Additionally, you can use these features to deploy and receive any ColdFusion archive file electronically.
The Archive Settings page lets you configure various archive system settings that apply to all archive and deployment operations. For more information, see the Online Help.
To archive a definition,
ColdFusion lets you create an EAR or WAR file that contains an entire application. This archive file contains the ColdFusion web application, settings for ColdFusion (such as data source definitions), the CFM pages used by your application (text or compiled Java), and optionally, the ColdFusion Administrator. This feature lets you quickly create an archive file that a J2EE administrator can use to deploy your ColdFusion application.
J2EE archives are different from ColdFusion archives (CAR) files. For information on CAR files, see ColdFusion Archives page.
Context root Because the J2EE environment supports multiple, isolated web applications running in a server instance, each J2EE web application running in a server is rooted at a unique base URL, called a context root (or context path). The J2EE application server uses the initial portion of the URL (that is, the portion immediately following http://_hostname_) to determine which web application processes an incoming request.For example, if you are running ColdFusion with a context root of cfmx, you display the ColdFusion Administrator using the URL http://_hostname_/_cfmx_/CFIDE/administrator/index.cfm.Most J2EE application servers allow one application in each server instance to use / (forward slash) for the context root. The Remote Development Services (RDS) web application is not required if you use a context root of /.
The J2EE Archives page lets you create an enterprise application archive (EAR) file or web application archive (WAR) file that contains the following items:
The CFML pages of your application, stored in the root directory of the ColdFusion web application.
With this EAR or WAR file, a J2EE administrator can deploy your ColdFusion MX application to a J2EE application server.
Note: If you are creating a cluster of server instances when running the multiserver configuration, use this page to create the WAR or EAR files required to create each of the servers in the cluster. |
You can create a J2EE archive regardless of whether you are running ColdFusion MX in the server configuration or the J2EE configuration. However, you must be running the J2EE configuration to deploy an EAR or WAR file.
Option |
Description |
---|---|
Achive Name |
Specifies a name for the J2EE archive definition. This is also the name given to the EAR or WAR file. |
Application Directory |
Specifies the location of the CFM files to be included beneath the web root of the ColdFusion web application. |
Distribution Directory |
Specifies the directory where ColdFusion places the EAR or WAR file. ColdFusion uses the name archivename.ear or archivename.war, depending on the archive type. |
Archive Type |
Specifies whether ColdFusion creates a Web Application Archive (WAR) file or an Enterprise Application Archive (EAR) file. |
Context Root (valid for EAR) |
If you create an EAR file, you can optionally specify a context root for the ColdFusion web application. The default is an empty context root. For more information, see J2EE Archives. If you create a WAR file, the context root is handled in an application-server-specific manner. In some application servers, the default context root is the name of the WAR file; in others, you specify the context root using the deploy tool or through a server-specific configuration file. |
Serial Number |
Specifies a valid serial number for ColdFusion Enterprise Edition. |
Previous Serial Number (if Upgrade) |
Specify the serial number of the previous ColdFusion installation. |
Include COM Support |
Include COM Support Specifies whether to include the modules that provide COM support. Omitting COM support reduces the size of the archive by about 12 MB. |
Disable Debugging |
Specifies whether to disable debugging in the ColdFusion web application. |
Include CFML Source |
Specifies whether to use the original CFM files or to convert the pages to Java bytecode. |
Include CF Administrator |
Specifies whether to include the modules and directories for the ColdFusion Administrator (the CFIDE directory structure). Omitting the ColdFusion Administrator reduces the size of the archive by about 2 MB. |
Configure Data Sources to be Included in Archive |
Specifies the data sources to include in the J2EE archive. Use the Right and Left Arrow buttons to select and remove data sources. Use the Double Arrow buttons to select and remove all data sources with one click. |
The Enterprise Manager section of the Administrator lets you create Tomcat server instances with ColdFusion already deployed, register remote Tomcat server instances, and create clusters of Tomcat server instances.
The Instance Manager page lets you view the local and remote Tomcat servers that can be accessed by a cfusion server running.
From this page you can access pages that define new, local, Tomcat servers and register existing Tomcat servers running on remote computers, as follows:
Area |
Description |
---|---|
Actions |
Lets you start, stop, restart, and delete a Tomcat server. |
Name |
Specifies the Tomcat server name. If the server is started, you can click this name to open a browser window to the Tomcat server's web root. |
Server Directory |
Specifies the server directory. |
HTTP Port |
Specifies the port for the built-in web server. |
Remote Port |
The remote port for the server instance. |
Host |
Specifies the host name or IP address for the server instance. |
Cluster |
Cluster Specifies the name of the cluster that contains the server. |
The Cluster Manager page in ColdFusion Administrator lets you create and manage clusters of Tomcat servers, each containing the same ColdFusion application.
The Edit Cluster page in ColdFusion Administrator lets you define the server instances for a cluster and to customize cluster settings.
Manage clusters using the ColdFusion Administrator. If your ColdFusion application uses session replication, sticky sessions are not typically required.
When session replication is enabled, Tomcat propagates session-variable information to all servers in the cluster every time a session variable changes. Consider whether the application's business requirements require session replication and whether your network incurs the increased traffic before enabling session replication. Consider using client variables instead of session variables.
In the ColdFusion Administrator, click Enterprise Manager > Cluster Manager.The sticky sessions and session replication options require the use of J2EE Sessions by all instances participating in the cluster. To enable J2EE sessions, go to the Memory Variables page and enable the Use J2EE session variables option. Do this for each server in the cluster.
To add a remote instance to a cluster, add the cluster block to the remote instances server.xml. Then, register the remote instance and add the instance to the cluster. For more information on configuring clusters on Tomcat, see http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html.
Add the following block between the entries </host> }}and {{</engine>:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8"> <Manager notifyListenersOnReplication="true" expireSessionsOnShutdown="false" className="org.apache.catalina.ha.session.DeltaManager"> </Manager> <Channel className="org.apache.catalina.tribes.group.GroupChannel"> <Membership port="45565" dropTime="3000" address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" frequency="500"> </Membership> <Receiver port="4003" autoBind="100" address="auto" selectorTimeout="5000" maxThreads="6" className="org.apache.catalina.tribes.transport.nio.NioReceiver"> </Receiver> <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> <Transport className="org.apache.catalina.tribes.transport.nio. PooledParallelSender"> </Transport> </Sender> <Interceptor className="org.apache.catalina.tribes.group.interceptors. TcpFailureDetector"> </Interceptor> <Interceptor className="org.apache.catalina.tribes.group.interceptors. MessageDispatch15Interceptor"> </Interceptor> </Channel> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=""> </Valve> <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"> </Valve> <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"> </ClusterListener> <ClusterListener className="org.apache.catalina.ha.session. ClusterSessionListener"> </ClusterListener> </Cluster>
5. In the entry, update the membership port with the multicast port of the cluster.
6. Using the ColdFusion Administrator of the local host, add the local instance and the remote instance to the cluster.
7. Restart all the instances.
In ColdFusion 10 or higher, the ColdFusion Administrator lets you verify and make product updates from the browser-interface itself.
Verify if there are any product updates using the ColdFusion Administrator (Server Update > Update). The updates can include hot fixes and security hot fixes for ColdFusion 10.
The Updates page has the following options:
Download: Downloads and places the file in <cf_home>/hf-updates/ for later installation.
Note: If your server is behind a firewall or has no outbound internet access, note that you can download the hotfix file from another machine via this URL: http://download.adobe.com/pub/adobe/coldfusion/xml/updates.xml. You can then place the hotfix file on the ColdFusion server and apply the hotfix either with the Admin interface or via the command-line. If you place it in a locally web-accessible location, you can even configure the updater settings to point to that local URL as the location for ColdFusion to find the updates. See the discussion on the "settings" section, below. |
Download and install:Downloads the hot fix and performs a silent installation.
Note: This option does not apply to J2EE installations. Also, in the case of multi-server installations, you have to select the server on which you want to install the hot fix. |
Settings: Provides options to specify update preferences such as update notifications or if to automatically check for updates.
If you have set up a local update site, you can also specify URL of that site to get updates. To do this, populate the updates.xml (see the following sample) and then update the URL in the Administrator (Server Update > Updates > Settings > Update Site > Site URL). For example, http://IPAddress:Port/updates/updates.xml. The following is a sample updates.xml:
<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>ColdFusion_10_Update</title> <description>Upload_description</description> <item> <title>Hot_Fix_Name</title> <description>Hotfix_Description</description> <pubDate>Tue, 19 Oct 2011 11:09:11 -0400</pubDate> <cfhf_id>HotFix_ID</cfhf_id> <cfhf_type>Cumulative</cfhf_category> <cfhf_updatelevel>Integer indicating Hotfix Chronology</cfhf_updatelevel> <cfhf_filename>Hotfix_installer_file_name</cfhf_filename> <cfhf_technotelink>Link_to_Technote</cfhf_technotelink> <cfhf_servers> <cfhf_server version="10,0,0"> <cfhf_downloadlink>http://localhost:8500/updates/install060811.jar </cfhf_downloadlink> <cfhf_checksum>20f33dd56597b68c3634be08116bc84a</cfhf_checksum> <cfhf_filename>hotfix_1.jar</cfhf_filename> <cfhf_installinput> <OPTIONAL_![CDATA[ HTML for input fields ]]> </cfhf_installinput> </cfhf_server> </cfhf_servers> </item> </channel> </rsst>
Platform |
Description |
|
---|---|---|
On Windows(Installation possible in either GUI or Silent mode) |
In GUI mode:
|
|
On Linux/Solaris/UNIX(Installation possible in either console or silent mode) |
In Console mode:
|
|
On Mac OSX(Installation possible in either GUI, Silent, or Console mode) |
In GUI mode:
|
By default, after applying the hotfix, servers are restarted. If you do not want the servers to restart, additionally, provide the following command:
Platform |
Description |
||
---|---|---|---|
On Windows(Installation possible in either GUI or Silent mode) |
In GUI mode (for exploded EAR/WAR deployment):
|
||
On Linux/Solaris/UNIX(Installation possible in either console or silent mode) |
In Console mode (for exploded EAR/WAR deployment):
|
||
On Mac OSX(Installation possible in either GUI, Silent, or Console mode) |
In GUI mode (for exploded EAR/WAR deployment):
|
Note: When you create a new instance from ColdFusion Administrator, hot fixes applied to the default instance is automatically applied to the new instance that you create. |
1. If you have installed from command prompt in Console or UI mode, from the ColdFusion root directory, run the following command:
<CF_ROOT>\jre\bin\java -jar <CF_ROOT>\cfusion\hf-updates\hf-11-xxxxx\uninstall\uninstaller.jar |
(Modify the command according to your path/OS/Hotfix)
2. If you have installed from the ColdFusion Administrator, from the ColdFusion root directory, run the following command:
<CF_ROOT>\jre\bin\java -jar <CF_ROOT>\cfusion\hf-updates\hf-11-xxxxx\uninstall\uninstaller.jar |
3. If you have installed the hotfix using silent installation on your own, uninstallation can also be done silently. Run the following command:
<CF_ROOT>\jre\bin\java -jar <CF_ROOT>\cfusion\hf-updates\hf-11-xxxxx\uninstall\uninstaller.jar -i SILENT |
Even though you have installed hotfix to 5 instances using a single script, there is only one hotfix uninstaller for all these 5 instances for a given update (Usually this is under cfusion instance. It can be under other instances if cfusion was not opted for HF). When you invoke the previously mentioned commands, it will uninstall the hotfix from all the 5 instances.
You can extend the functionality of the ColdFusion Administrator by adding links to other web applications and sites. These links appear under the Custom Extensions section in the left navigation pane of the Administrator.
Save this file as extensionscustom.cfm in the Administrator root directory (/CFIDE/administrator/).
For example, the following file adds links for Bowdoin College, Universidad Complutense de Madrid, and La Sapienza:
<a href="http://www.bowdoin.edu/" target="content">Bowdoin College</a><br> |
When you click a link, the page appears.
Alternatively, you can extend the ColdFusion Administrator by editing the wwwroot/CFIDE/administrator/custommenu.xml file.
You can use the Administrator API to perform most ColdFusion Administrator tasks programmatically. The Administrator API consists of a set of ColdFusion components (CFCs) that contain methods you call to perform Administrator tasks. For example, you use the setMSQL method of datasource.cfc to add a SQL Server data source.
The CFCs for the Administrator API are located in the cf_web_root/CFIDE/adminapi directory. Each CFC corresponds to an area of the ColdFusion Administrator, as the following table shows:
CFC |
Description |
---|---|
accessmanager.cfc |
Specify the user name, password, description, access rights, sandboxes, and allowed roles for individual users. |
administrator.cfc |
Contains basic Administrator functionality, including login, logout, the Migration wizard, and the Setup wizard. You must call the login method before calling any other methods in the Administrator API. |
base.cfc |
Base object for all other Administrator API CFCs. |
collection.cfc | Managa ColdFusion collections. Actions include reloading collections and enabling highlighting for collections. |
datasource.cfc |
Add, modify, and delete ColdFusion data sources. |
debugging.cfc |
Manage debug settings |
eventgateway.cfc |
Manage event gateways |
extensions.cfc |
Manage custom tags, mappings, CFXs, applets, CORBA, and web services. |
flex.cfc | Manages Data Services integration settings |
office.cfc |
Manage OpenOffice settings. |
mail.cfc |
Manage ColdFusion mail settings. |
runtime.cfc |
Manage runtime settings for fonts, cache, charts, configuration, and other settings. |
scheduler.cfc | Manages Scheduler tasks Services integration settings like finding task, updating task, and enabling cluster management. |
security.cfc |
Manage passwords, RDS, and sandbox security. |
serverinstance.cfc |
Start, stop, and restart Tomcat servers. This CFC only works for Developer and Enterprise editions only. |
servermonitoring.cfc |
Perform many of the Server Monitor tasks programmatically. |
The adminapi directory also contains an Application.cfm file and two subdirectories.
Note: If you are using sandbox security, enable access to the cf_web_root/CFIDE/adminapi directory to use the Administrator API. |
Following are the styles of methods in the Administrator API:
Instantiate administrator.cfc:
<cfscript> |
|
createObject("component","cfide.adminapi.administrator").login("admin"); |
Note: You can log in as a user other than administrator, but with proper permissions, as follows. Provide the user name after the password. |
createObject("component","cfide.adminapi.administrator").login |
Call the administrator.cfc loginmethod, passing the ColdFusion Administrator password or the RDS password:
adminObj.login("admin"); |
Instantiate the desired CFC:
myObj = createObject("component","cfide.adminapi.debugging"); |
Call the desired CFC method (this example enables debugging):
myObj.setDebugProperty(propertyName="enableDebug", propertyValue="true"); |
<cfscript> // Login is always required. This example uses two lines of code. adminObj = createObject("component","cfide.adminapi.administrator"); adminObj.login("admin"); // Instantiate the data source object. myObj = createObject("component","cfide.adminapi.datasource"); // Create a DSN. myObj.setMSSQL(driver="MSSQLServer", name="northwind_MSSQL", host = "xx.x.xxx.xx", port = "1433", database = "northwind", username = "sa", login_timeout = "29", timeout = "23", interval = 6, buffer = "64000", blob_buffer = "64000", setStringParameterAsUnicode = "false", description = "Northwind SQL Server", pooling = true, maxpooledstatements = 999, enableMaxConnections = "true", maxConnections = "299", disable_clob = true, disable_blob = true, disable = false, storedProc = true, alter = false, grant = true, select = true, update = true, create = true, delete = true, drop = false, revoke = false ); </cfscript>
The following example adds the same SQL Server data source, but uses the argumentCollection attribute to pass all method arguments in a structure:
<cfscript> // Login is always required. This example uses a single line of code. createObject("component","cfide.adminapi.administrator").login("admin"); // Instantiate the data source object. myObj = createObject("component","cfide.adminapi.datasource"); // Required arguments for a data source. stDSN = structNew(); stDSN.driver = "MSSQLServer"; stDSN.name="northwind_MSSQL"; stDSN.host = "xx.x.xxx.xx"; stDSN.port = "1433"; stDSN.database = "northwind"; stDSN.username = "sa"; // Optional and advanced arguments. stDSN.login_timeout = "29"; stDSN.timeout = "23"; stDSN.interval = 6; stDSN.buffer = "64000"; stDSN.blob_buffer = "64000"; stDSN.setStringParameterAsUnicode = "false"; stDSN.description = "Northwind SQL Server"; stDSN.pooling = true; stDSN.maxpooledstatements = 999; stDSN.enableMaxConnections = "true"; stDSN.maxConnections = "299"; stDSN.enable_clob = true; stDSN.enable_blob = true; stDSN.disable = false; stDSN.storedProc = true; stDSN.alter = false; stDSN.grant = true; stDSN.select = true; stDSN.update = true; stDSN.create = true; stDSN.delete = true; stDSN.drop = false; stDSN.revoke = false; //Create a DSN. myObj.setMSSQL(argumentCollection=stDSN); </cfscript> <!--- Optionally dump the stDSN structure. ---> <!--- <cfoutput> <cfdump var="#stDSN#"> </cfoutput> --->