Marcos Placona Blog

Programming, technology and the taming of the web.

Category: coldfusion (page 1 of 12)

Running Railo on AppFog… For free!

Reading time: 2 – 4 minutes

You will have noticed I deviated my blog posts quite a bit from CFML in the last couple of months. That doesn’t mean I don’t love it anymore, but just that I’ve been “putting my eggs on lots of other baskets” lately.

This blog is hosted on a VPS, and I haven’t really found it necessary to have any CFML engine running on it. I could allocate some memory to have a tiny instance of Railo running, but I’d prefer not having to deal with something else running, since it could easily crash, and take me months to actually realize it. This happened to my Langithub project the other day, and I simply didn’t notice until someone pinged me to let me know.

However, I do sometimes want to post working examples written in CFML, and I could simply use some of the few free services out there, but… I’d rather not.

So for a blog post I’ve been working on, I decided I’d give cloud hosting a go. I’ve been playing with AppFog for a few weeks now, and noticed it’s got a Java Application option listed on the application types it supports. I then went ahead and created one of them called railo.

AppFog Java App

This now gave me an empty Java Application.

Knowing the folks at Railo provide a download in war format, I went ahead and downloaded it

Railo .war download

I’ve put it on $ ~/marcos/railo, but you can put it anywhere you want.

Now within that folder from console, I issued:

This will do two things.

  1. Prompt you for your appfog login and password
  2. deploy the .war file to the railo project

You will then see a few other things will happen, as it will now be decompressing the war file, and starting your application.

If you now browse your application (using the URL provided by AppFog appending index.cfm to it), you will see Railo has been installed, and you can start rocking on the Cloud.

The example I used here can be seen on

Object-Oriented Programming in ColdFusion

Reading time: 1 – 2 minutes

I know it must be pretty old news by now that Matt Gifford has written a book called Object-Oriented Programming in ColdFusion.

I’ve been approached by the folks at Packt last week and asked to read it and write a review about the book.

I’m still waiting for it to be delivered, but will be writing the review as soon as I’m done with the book. In the meantime, you can have a sneak peek of the sample chapter or buy the book directly.

ColdFusion 9 Developer Tutorial – Book Review

Reading time: 2 – 2 minutes

Book reviewer Marcos Placona | Publisher: Packt | Author: John Farrar

The book starts with a very brief introduction to ColdFusion, and what the basic language capabilities are.

On chapter 1 – Web Pages – Static to Dynamic

The author begins by explaining what variables are for, and then moves into strings and scopes. He then moves into structures, loops, arrays , conditional processing through if’s and case statements, and explains some of the wonders on exception handling. This chapter is merely a run through around the CFML language, and will help programmers familiar with the technology to understand the conventions used by the book through the code samples.

Chapter 2 – Basic CFCs and Database Interaction

Things start to get a bit more exciting on chapter two, where the topic moves into CFC creation, some objects (beans), and a little bit of database interaction. I like how basic terminologies are described here, and pretty much every example is showed through tags and scripting.

The book uses a very simple product management system as example, and the examples show what a bean object is, and what it can be used for. I could see the author did not focus too much on explaining what object oriented programming is, but the concept is shown through the whole book.

In this chapter, some simple database interaction is demonstrated, and at around page 60, you are already writing full blown objects, which are database reliant, and give you the ability to encapsulate most of the logic.

Continue reading

HostelBookers 2010 ColdFusion Survey

Reading time: 1 – 2 minutes

We have just released a ColdFusion Survey to try and understand more about what are the actual ColdFusion developer’s perceptions.

We’ll be giving away a free copy of CFWACK 9 Volumes 1 – 3 for a lucky person who successfully completes the survey.

Take the survey here

CFWACK 9 Volume 1 CFWACK 9 Volume 2 CFWACK 9 Volume 3

ColdFusion 9 Developer Tutorial

Reading time: 2 – 2 minutes

ColdFusion 9 Developer Tutorial - By John FarrarI’m delighted to say John Farrar has released his new ColdFusion 9 Developer Tutorial book, and it’s now available from all the major retailers around the world.

I’ve already ordered mine, and am expecting to get it at some time next week.

In the meantime, I’ll start reading the e-book version of it, which can also be purchased via Packt Website.

If you’re unsure about this book, I’d recommend you having a read at the freely available chapter 4 that can also be found on their website.

I’ve been asked by the publishers to write a review on this book, which I should be doing once I get the book and read it,  so watch this space.

Older posts