There has been a recent change in the way callback functions of the various filter functions work. Earlier, the callback functions used to take only one element at a time. Following were the syntaxes for the 3 most commonly used filter functions. ArrayFilter – arrayFilter(array,function(arrayElement){return true|false;}); ListFilter – listFilter(list,function(listElement){return true|false;}); StructFilter – structFilter(struct,function(key, value){return true|false;}); As we can see, for all of these filters, the callback function has access to only one item at a time. Effectively this means […]
With ColdFusion 11 Update 3, we have introduced a new parameter called “getHeaders”, in the “cfExchangeMail” tag. It accepts a boolean value. When set to true, cfExchangeMail returns a query with an additional “InternetHeader” column. This column contains a struct containing key-value pairs of the email-headers associated with each message. Email message headers provide technical details about the message, such as who sent it, the software used to compose it, the version of the MIME protocol used by the sender […]
Many times you would want to tweak the performance of the ColdFusion server or want to debug the bottlenecks that make the server unresponsive. To analyze this, ideally, you would want to have Thread dumps and Server memory snapshots (Heap Space, Eden Space, Survivor Space, Old Gen, Perm Gen). While you can use JDK tools like jstack to get the dumps, it is tedious to install it and schedule the thread dumps. So, programmatically thread dumps and memory snapshots are […]
tools.jar contains the utilities to compile java source into class files. While using ColdFusion Web services stubs have to be generated. So, this utility is required for this feature to be functional. The tools.jar is shipped by default with ColdFusion along with full installation of ColdFusion which would be same version of the jre that ColdFusion is shipped with. If you are just using this default installation and the built-in jre, your ColdFusion web services do work fine. However, due […]
Would like to explain the some of the factors that decide how much maximum memory that an application needs. Here are two examples. One is with cffile upload action and the other is with cfpdf thumbnail action. Sometimes, while uploading large files using cffile with upload action (<CFFILE ACTION= “UPLOAD”) you would have run into the following error “500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.” […]
Sometimes, depending on your need, you may want to enable or disable the Tomcat access logs, which track every request to ColdFusion. In CF10, these logs were enabled by default. Since CF11, they are disabled by default. This post shows how to enable them, as well as how to modify the logging.
(Originally written in Jul 2015, updated in Jan 2021) For a more complete and updated discussion of this topic, see the 2019 post, Guide to configure JNDI datasource in ColdFusion. This 2015 post below expanded on a still-older one, linked to below. Both are combined and updated into the more recent post. For configuring JNDI data sources, it should firstly be supported by the application server. Tomcat server, which is built-into ColdFusion server, has the support for this by default. […]
First, some background. dbvarname is an attribute for cfprocparam to specify named parameters while calling a stored procedure. For details refer https://wikidocs.adobe.com/wiki/display/coldfusionen/cfprocparam Versions prior to ColdFusion5 had support for dbvarname. This was deprecated in ColdFusion MX, brought back in 7.0.1 and deprecated again in 7.0.2. The reason was the lack of proper support from multiple jdbc drivers. Since then, this was a major ask among ColdFusion users. ColdFusion 11 brought this attribute back from the dead. It was disabled by […]
This is the first in a series of posts on WebSocket proxy configuration. ColdFusion uses dedicated port (8575/8577) to start its internal WebSocket Server by default. Earlier, these ports were required to be always accessible from outside. This setup works well for intranet applications. But for public facing web applications, it is not advisable to keep port open and let it be accessible from outside. ColdFusion 11 has introduced proxy support for WebSocket. There is a new proxy module that can […]
In CF10 we had introduced cfoauth tag which helped in social login integration. Lets use it to build a simple facebook app which will download your facebook profile’s pic, add some image effects to it and post it to facebook. 1. First we need to ask user to login via facebook so that we can fetch his profile image. <cfoauth type=”facebook” clientid=’YOUR_CLIENT_ID’ secretkey=”YOUR_SECRET_KEY_HERE” result=”r” scope=”” redirecturi=”REDIRECT_URL”> 2. Not lets set this info into some variable <cfset Session.fbinfo = […]
Here are the new code names for the next versions of ColdFusion server and ColdFusion Builder. The next major version of ColdFusion server is codenamed Raijin. Raijin is the Japanese lightning God The subsequent version of ColdFusion server post Raijin has been codenamed Aether. Aether is the greek god of upper atmosphere. We continue to the trend of basing our code names on mythological characters. Also note that the next version of ColdFusion server was previously announced as Dazzle. Dazzle […]
In celebration of ColdFusion’s 20 year birthday here at Adobe we’re inviting you to be a part of this milestone with us by posting your picture wishing CF a Happy 20th Birthday. All entries will come together as a photo collage wall at ColdFusion Summit later this year in Las Vegas, so even if you can’t make it to Summit you can still be a part of the celebrations there!
Bonus points to those that have pics with ColdFusion props. We know you all have a favorite t-shirt by now or saved the old shrinkwrap boxes in your basements, so it’s time to dust those off and show us your favorite CF memories!
The best entries will get a surprise gift, so get creative.
Obviously, no inappropriate content please.
Please post all entries to Facebook or Twitter with #CFTurns20
Happy Birthday ColdFusion!

