Mark Drew (Redux)- cf_etc...

a compendium of railo, cfml, cfeclipse and technology topics

Mark Drew (Redux)- cf_etc...

Entries Tagged as getrailo

Railo ORM and Magic Functions

August 06, 2010 · 4 Comments

Background: I am writing a little app to help us here at Railo with some of our contacts, nothing over the top or anything and wanted to take Sean Corfield's FW/1 for a spin.

As I am developing, I went the most direct route, I just did some queries in the service layer so my code looks like:

<cffunction name="list" output="false">
	<cfset var clients = 0>
	
	<cfquery name="clients" datasource="#variables.dsn#">
		SELECT * FROM contact;
	</cfquery>
	<cfreturn clients>
</cffunction>


<cffunction name="view" output="false">
	<cfargument name="clientid">
	<cfset var qclient = 0>
	<cfquery name="qclient" datasource="#variables.dsn#">
		SELECT * FROM contact WHERE id = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.clientid#">;
	</cfquery>
	<cfreturn qclient>
</cffunction>

OK, nothing world shattering, so I wanted to start using the ORM features of Railo (join the pre-release group to test them out!). I changed my code to look like:

<cffunction name="list" output="false">
	<cfset var clients = 0>
	
	<cfquery name="clients" dbtype="orm">
		FROM contact
	</cfquery>
	<cfreturn clients>
</cffunction>


<cffunction name="view" output="false">
	<cfargument name="id">
	<cfreturn entityLoad("contact",arguments.id,true)>
</cffunction>

I then defined my "contact" (I can show the code but it's hardly rocket science) and then when I reloaded I got the error:

Component [contact] has no acessible Member with name [ID]

Of course! My view code looks like:

<input type="hidden" name="id" value="#rc.data.id#">


I could change all my calls to fields to

<input type="hidden" name="id" value="#rc.data.getid()#">


but why bother? I just went to the Railo Admin -> Archives & Resources: Component -> Magic Functions and enabled them, now all my view code works just as expected and I didn't have to change my view code.

 

 

4 CommentsTags: getrailo · railo

Railo at CFUNITED!

July 26, 2010 · No Comments

On the final CFUnited, Railo will be there in force!

You can come visit us at our stand to find out the awesome consulting services we provide as well as, of course, our most awesome Open Source CFML Engine! (yes! I used "awesome" twice!)

There might even be some delicious Swiss chocolate there too!

Apart from the stand, you can also check out our team's presentations

Sean Corfield will be talking about:

And you can also catch Gert Franz's topic:

Since most of us will be en-route to the conference tomorrow, why not email us today if you have any queries ahead of time?

See you all there! I am sure it's going to be awesome!

No CommentsTags: cfunited · getrailo · railo

Presenting at cf.Objective (ANZ)

July 25, 2010 · No Comments

 

I am really happy to say that I shall be presenting at cf.Objective (ANZ) this year! I had a great time last year in Melbourne and glad that this year I won't just be manning the Railo stand (do come and say hello!) but I shall also be doing a presentation on CouchDB 

 

CouchDB is a "noSQL" database that is rather exciting in how it works as well as a highly performant document database.

 

If you manage to make it, make sure you either come to my session or at least pop by and say hello to the Railo team! 

 

No CommentsTags: cfObjective · couchdb · getrailo

Quick Tip on Railo Email Send Queues

July 22, 2010 · No Comments

 

When you send an email from the <cfmail> tag in Railo, there are times that for whatever reason the email won't be sent. Rather than digging through a bunch of folders to see what hasn't been sent, you can do a couple of things.

You can view all the task spool in the Railo Web Administrator -> Services -> Tasks page by going to http://<your server>/railo-context/admin/web.cfm?action=services.tasks

Or you can programatically get the task spool by doing the following code:

<cfadmin action="getSpoolerTasks" type="web" password="#password#" returnVariable="tasks">

<cfdump var="#tasks#">

You get a query by return that has the type, the item, how many times it has tried and an array of exceptions that have happened, this way you can manually or programatically deal with the errors.


 

No CommentsTags: cfml · getrailo · railo

Building Railo Extensions Part 2: Setting up a debug environment

July 03, 2010 · No Comments

 

In the first part of this series I looked at creating an extension and an extension provider which suited my needs.

In this post I shall be looking at getting Railo server into your Eclipse project so that you can debug your code. 

So that we can keep it all neat and tidy, I am going to create a project in Eclipse, that will contain the source code for the extension, the extension provider, and Jetty running Railo. 

Why would I put ALL of this in one project you might ask (you might?). I want to be able to debug the server itself, set breakpoints and check variables as I write my code. 

 

[Read more →]

No CommentsTags: extensions · getrailo · railo

Building an Extension for Railo: Part 1

July 02, 2010 · No Comments

My role at Railo Technologies has so far been much more of a consultant so far. We consult and develop a number of projects on ACF and Railo and as I am a happy CFML user this has worked out great so far.

One of the things that I wanted to get much more into was the engine itself, and adding features to it. One feature that I am currently working on is creating aCouchDB Cache Extension.

Why CouchDB? Will firstly because it has a really simple API, secondly because you can make it replicate as needed and this makes for a great document based object store.

What I have been doing is:

Building an Extension

Building a development Extension Provider

Automating the updating of the Extension

Running Railo with a Java Debugger

Running tests on the extension

[Read more →]

No CommentsTags: extensions · getrailo · railo

Meet the Railo Team: Now in a conference near you!

April 15, 2010 · 2 Comments

With the upcoming conferences you have the great opportunity to meet the guys from Railo at a conference near you!

So who is going to be where?

CF.Objective(), Minneapolis - April, 22-24 2010



As a Gold sponsor we will have a booth where Mark Drew and Gert Franz will be present most of the time. Sean Corfield and Peter Bell are presenting some topics.

WebDU, Sydney - Australia - May, 6-7 2010



In Sydney Australia Peter Bell is going to present and represent Railo with some talks. We try to be back as sponsors again next year.

Scotch on the Rocks, London - England - May, 24-25 2010



At Scotch on the Rocks as a Gold sponsor we will have a booth as well. Mark Drew, Peter Bell and Gert Franz will be hosting it.

In addition you will be able to meet Michael Offner the main architect behind the Open Source engine as well as Andrea Campolonghi the author of the AJAX extensions in Railo.

Mark Drew and Gert Franz will have two presentations about Railo (and Railo 4.0) and Peter will cover a project management topic.

CF United - Washington - July, 28-31st, 2010



This year we will return to the Landsdowne Resort in Washington as a silver sponsor, where this year's CFUnited will take place.
We will have a booth in the sponsor area and a couple of talks with Gert Franz and Sean Corfield.
Mark Drew shall also be attending.

We will blog about out appearances later this year soon.

2 CommentsTags: cfObjective · cfunited · getrailo · railo · scotch on the rocks · webdu

Introduction to Railo over at PacktPub

March 11, 2010 · 4 Comments

Spotted today on twitter, a great article: Introduction to Railo Open Source by  Andrew Schwabe on http://www.packtpub.com/

It's great to see the community writing articles that spread the word about Railo far out into other communities, which surely spreads what CFML developer's have known all along that CFML and Railo just gets things done! 

 

 

4 CommentsTags: cfml · getrailo · railo

See you at CeBit!

February 17, 2010 · No Comments

The Railo Team will be at CeBit in Hanover, Germany this year (2nd to 6th of March),  myself and Gert Franz will be joining our partners Contens and Intergral at their stand.

This is the first time that I am heading to CeBit but unfortnuately I shall only be there on the Thursday 4th of March so come say hello!

The stand will be located at hall 6 stand J32

 

See you there!

 

 

 

No CommentsTags: cebit · getrailo · railo

Seeking ColdFusion and CFML UK based contractors

February 10, 2010 · 7 Comments

So this is a bit of a fishing post (at least I am being honest!)

In the next few months Railo Technologies will be working on a number of projects and we are  looking to build up a good list of contractors that can work on these projects with us.

I am not posting details of specific jobs of course, but you should have a variety of skills round CFML and CFML development, such as frameworks, ORM techniques, code optimisation and  load testing etc.

Please, read carefully now, I am not looking for agents, I am sure you have wonderful contractors and reasonable rates and make coffee to die for but please do NOT contact me.

So, if you are contracting at the moment, or will be looking for contracts in the UK and Europe over the next few months send me an email with your CV, letting me know which areas you enjoy/are good at/ both/ want to get into etc.

IF YOU ARE NOT AN AGENT, email me over at mark at getrailo dot com

Finally, as previously mentioned, I shall be treating emails from agents with the contempt they deserve, so don't ruin your day eh?

7 CommentsTags: cfml · coldfusion · getrailo · jobs · railo