Difference between version and version      View first change»»

Back to News, or News version history

At line 9 changed 1 line.
!!14-Apr-2012 Railo - CFML on Tomcat
!!14-Apr-2012 Using Railo for CFML and Lift for Scala at Metawerx
At line 11 changed 1 line.
Today we've been playing with Railo 3.3 on Tomcat 7.0.27.
Today we've been playing with Railo 3.3 on Tomcat 7.0.27, and Lift 2.4 with Scala 2.9.
At line 13 changed 1 line.
Railo implements the CFML language and is Open Source. Railo 3.3 is intended to be compatible with Adobe ColdFusion 9 and Railo 3.1.2 was intended to be compatible with Adobe ColdFusion 8.
Both were nice and easy to get running on a Metawerx hosted JVM, so we wrote some quick tutorials.
At line 15 changed 1 line.
CFML (Cold Fusion Markup Language) is a quick and easy server-side scripting language. Here's a quick example doing a database lookup:
* [Installing Lift/Scala on Tomcat|Installing Lift Scala on Tomcat]
* [Installing Railo for CFML on Tomcat]
At line 17 changed 28 lines.
{{{
<cfquery name="getproducts" datasource="mydb">
select name, price from products where id = 100
</cfquery>
<cfoutput query="getproducts">
<br>#name# #price#
</cfoutput>
}}}
It also supports parameterised queries to easily avoid SQL-injection attacks etc...
We've been using it for years internally to mock up test systems before writing them properly in Java and Neale has also worked on large scale enterprise level applications written in CFML.
CFML started out as an interpreted language with caching, but long ago was converted into Java. These days CFM files are converted into Java, then compiled into classes just like JSP.
Cold Fusion Applications have been able to be hosted at Metawerx for a long time using the Cold Fusion WAR method. So why Railo? It's Open Source! No need to purchase licenses, and it runs on top of Tomcat or TomEE.
Here's a quick install guide:
* Download Railo Custom from http://www.getrailo.org/index.cfm/download/
* Save it as a WAR file (eg: somename.war or ROOT.war depending on whether you want it to be the main ROOT application or a separate context)
* Upload it to your webapps folder and wait for it to auto-deploy, or deploy it with Tomcat Manager
* Go to the application using your browser, eg: http://tcXXXXX.metawerx.com.au/myRailo and immediately set a password for the Server Administrator and Web Administrator
* Set a database and mail server if you will use them, and limit the max connections to something suitable (eg: 5)
* Upload your CFML pages or application and enjoy!
We found it installs quickly, configures easily and runs well.
Other alternatives for CFML are OpenBlueDragon (also Open Source) and of course Adobe ColdFusion (commercial).
Other alternatives for CFML are OpenBlueDragon (also Open Source) and of course Adobe ColdFusion (commercial), each of which also run here.
navigation
metawerx specific
search
Share
tools
help

referring pages

Share