Entries Tagged as railo
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.
Tags:
getrailo · railo
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!
Tags:
cfunited · getrailo · railo
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.
Tags:
cfml · getrailo · railo
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 →]
Tags:
extensions · getrailo · railo
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 →]
Tags:
extensions · getrailo · railo
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.

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.
Tags:
cfObjective · cfunited · getrailo · railo · scotch on the rocks · webdu
We are running a great little competition that with just a few lines of code (ok, 4K total file size) you can win a ticket to cf.Objective on April 22-24, 2010 at the Hyatt Regency Minneapolis, MN!
There are few rules to the competition, but basically just write some code that shows off Railo Open Source server's features.
Check out the rules and some ideas over at the Railo Blog!
Tags:
CFConferences · cfml · cfObjective · railo
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!
Tags:
cfml · getrailo · railo
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!
Tags:
cebit · getrailo · railo
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?
Tags:
cfml · coldfusion · getrailo · jobs · railo