Skip to main content

Posts

Showing posts from February, 2005

First "Official" ColdFusion 7 Upgrade

So today was the day--I kicked everyone off one of our development servers and upgraded from CFMX 6.1 Standard to CFMX 7 Enterprise. I've done the installation on several machines by this point but this was the first installation on a server at my company that "matters" (i.e. other people use it and would gripe if it was down for too long).
As expected everything went 100% smoothly! I just thought I'd share some thoughts about the installation and the improvements I'm already seeing in moving from CFMX 6.1 Standard to CFMX 7 Enterprise.

This installation was on Windows Server 2003 (Enterprise Edition), and I did the multi-instance/integrated JRun installation (option 2). The server supports three separate web sites, and we use IIS 6. We have maybe 20 datasources involved and a bunch of Verity collections as well, but nothing too out of the ordinary. I must admit when I upgrade things I actually tend to do a completely fresh installation, so I decided t…

getContextRoot() in CFMX 7

Maybe others aren't as excited about this as I am, but having the getContextRoot() method available in Java/JSP applications has always been extremely handy, and I was just bemoaning the lack of this in CFMX the other day.
Bemoan no more! I finally had a chance to go over the CFMX 7 feature list in detail, and this one slipped by me: getContextRoot() is now available in CFMX 7. This will make writing context root-agnostic applications a lot simpler and is generally just a handy function to have available. One more reason to dive into CFMX 7!
Comments
I have to agree 100%. I was not even aware of this until I read your blog. I then checked the live docs to make sure this wasnt some crule joke :). This will save alot of varing and time, nice find. I also read your presentation on OOP, great job!
Posted by dan @ 4/17/07 3:04 PM

OK... what does it do... and how do you use it? Don't just be elated... tell others what it does for you and us.
Posted by John Farrar @ 4/17/07 3:04 …

CFC-101: An Introduction to OOP in CFMX

Here's a presentation (and the accompanying little application I built) that I gave to the Dallas/Fort Worth ColdFusion User Group last night. We had a good turnout and a lot of people are wanting to get into OOP in ColdFusion, so this is highly encouraging.
Caveats on the app:


It uses the new cfgrid and cfform in CFMX 7, so you'll have to run it on CFMX 7

The "Cancel" and "Delete" buttons on the cfforms don't do anything yet because I didn't have time prior to the presentation to figure out how to use the onClick ActionScript stuff

I cranked it out pretty quickly--a.k.a. "Standard Disclaimer" ;-)


As always, feedback is greatly appreciated. If you have questions, see something weird, think something could be explained better, etc. please feel free to let me know. That's how we're all going to learn this stuff and make every app we write in CFMX 7 OO!

Application (Zip)




cfc_101.pdf
Download this file



Comments
Sorry, I forgot to put the …

A Week With CFEclipse

I finally felt like I was at a point with projects, etc. that I could try CFEclipse this week. When I want to try a new piece of software (or when I switched from the PC to the Mac for example), I always try to give it a real try, meaning I abandon my old tool/program/computer/what have you and only use the new tool for an entire week. So this week I shut down Dreamweaver MX 2004 and fired up CFEclipse to see how it would go.

I have to admit this wasn't my absolute first time using Eclipse, but I'd only really dabbled before or used it when I was doing some Java stuff (for which Dreamweaver is absolutely horrendous). I really love some of the features so I was pretty sure I'd take right to it, but you never know until you cut the cord and only use the new tool.
When I did this one-week trial with a Mac I never went back to a PC and it's looking like this is going to be the case with CFEclipse as well. I kept expecting there would be several "I wish I could …

CFHibernate

In order to "put my money where my mouth is" about open source ColdFusion software, today I registered a new project at cfopen.org called CFHibernate. If you're familiar with Hibernate for Java, what I'd like to do is give ColdFusion users the tremendous capabilities that Hibernate has to offer. If you're not sure what Hibernate is, read on ...

Hibernate is an object-relational mapping (ORM) persistence framework for Java. What this means is that you define XML mapping files that describe your objects to Hibernate, and Hibernate creates your relational database model for you as well as many of your business objects (beans). Then in your application code, you literally don't ever have to write any SQL code. That's right, no SQL code. You make calls to the Hibernate service and it handles the database interaction for you. Being able to pass objects to Hibernate and not worry about all the "junk" that we typically have to concern ourselves…

Open Source CF Applications

The DFW CFUG had a really great meeting last month about open source in general, and specifically as it relates to CF, so I thought I'd pass along a the presentation I put together.
It contains my general thoughts about open source as well as a list of some open source CF applications that you might not be aware of. If you have any comments or questions about this presentation (it was thrown together pretty quickly), please let me know, and particularly if you have good open source CF resources, links, applications, etc. that aren't on my list, please tell me. I'd like to keep a running link list to spread the word about open source CF applications.
This has kind of turned into a crusade of mine as of late, because I get a bit annoyed when I see CF-centric sites using PHP applications. Most recently someone started up a "worldwide CFUG" and it's running PHPBB. Its creator had all sorts of reasons for doing this (none of which were valid IMO other …