Friday, July 25, 2008    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Apr 2007 >>
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Search

Categories
 • Adobe (63) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (14) [RSS]
 • AIR (116) [RSS]
 • Appearances (115) [RSS]
 • Books (67) [RSS]
 • CFEclipse (14) [RSS]
 • ColdFusion (1121) [RSS]
 • Data Services (8) [RSS]
 • Flash (95) [RSS]
 • Flex (346) [RSS]
 • Jobs (88) [RSS]
 • JRun (12) [RSS]
 • Labs (27) [RSS]
 • LiveCycle (17) [RSS]
 • MAX (149) [RSS]
 • Regular Expressions (12) [RSS]
 • SQL (36) [RSS]
 • Stuff (499) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (133) [RSS]
 • Wireless (97) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Day : April 24, 2007 / Main
April 24, 2007

Scorpio Per Application Settings

ColdFusion users have long wanted a way to define settings per application, rather than server-wide. In truth, this is doable right now, just install multiple instances of ColdFusion an each instance gets its own CF Admin and own settings. But, if that is not an option, then Scorpio will help, as I explained last night in Seattle.

ColdFusion MX7 introduced Application.cfc as an alternative to Application.cfm. Application.cfc does everything that Application.cfm does, and added important new features (like methods that get executed OnSessionStart and OnSessionEnd). To set application settings using Application.cfc, variables are set in the THIS scope. THIS.name to set the application name, THIS.sessionManagement to enable session state management, and so on.

In Scorpio, Application.cfc and the THIS scope can be used to define per application settings. For example, THIS.mappings is a structure which contains the currently defined ColdFusion mappings. To set a mapping you just modify that structure like this:

<cfset THIS.mappings["MyStuff"]="c:\inetpub\MyStuff">

Or like this:

<cfset StructInsert(THIS.mappings, "MyStuff", "c:\inetpub\myStuff")>

To set the Custom Tag path you can update THIS.customtagpaths which is a simple ColdFusion list. You can set the path like this:

<cfset THIS.customtagpaths="c:\inetpub\wwwroot\ben\tags">

Or use ListAppend() to add a path, like this:

<cfset THIS.customtagpaths=ListAppend(customtagpaths, "c:\inetpub\wwwroot\ben\tags")>

You get the idea. It's clean, simple, and highly intuitive.

Which means you now have yet another reason to use Application.cfc.


D.C. Presentation: The Future Of ColdFusion

Adobe and Carahsoft are hosting a 1/2 day seminar in D.C. entitled "The Future Of ColdFusion". The event is May 17th (the morning after the D.C. CFUG presentation), and I'll be presenting along with Tim Buntel and Adam Lehman. Unlike the CFUG presentations, this one is a little more oriented towards execs and technical decision makers, so you may want to bring your boss. Breakfast will be provided. Space is limited, and registration is required.


Flex Component Kit For Flash CS3 Released On Labs

Flex Component Kit for Flash CS3 has been posted to Labs. This kit allows you to create interactive and animated content in Flash CS3, and then use that content in your Flex apps. This way the designers on your team get to use Flash, the coders get to use Flex, and everyone gets to contribute to the development process.


Next Up, San Francisco

Last night's presentation in Seattle went very well, and the enthusiastic crowd reinforced what we already knew - that CF8 (Scorpio) is exactly what customers want. I am now in Adobe's San Francisco offices, venue for the next stop on the Scorpio Usergroup tour. If you are in the area, please drop by this evening!

  © Copyright 1997-2008 Ben Forta, All Rights Reserved