An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

Entries Tagged as railo

Railo 3.1.2.016 and for loop compatibility

July 19, 2010 ·

Railo has long supported for-in script loops over structures and arrays but with the appearance of ColdFusion 9.0.1, Railo has changed for-in over arrays to be compatible with Adobe's new feature.

[Read more →]

Tags: cfml-advisory · coldfusion · railo

Railo Volunteer Team Expands

June 10, 2010 ·

In order to support the vocal and enthusiastic community of CFML developers "down under", Railo has added a dedicated Community Manager volunteer for that region.

[Read more →]

Tags: coldfusion · oss · railo · webdu

Running FW/1 1.1RC1 on Railo 3.1.2.013

May 23, 2010 ·

I just updated this site with the latest FW/1 build and the latest public BER Railo build. Mango powers this blog but FW/1 powers the rest of this site.

Tags: coldfusion · fw1 · railo

Railo at CeBIT

February 25, 2010 ·

Next week, some of the Railo team will be at CeBIT in Hannover, the world's foremost tradeshow for the digital industry. This is a great opportunity for us to expose more people to CFML! Gert and Mark will be there, on the CONTENS CMS booth, along with Intergral. You can read more about Railo at CeBIT on the Railo site. That news release explains how you can get a free ticket to visit the booth and learn about Railo, Intergral and CONTENS can do for you!

Tags: coldfusion · railo

Improving CFSCRIPT

December 29, 2009 ·

One of the new features in Adobe's ColdFusion 9 release that has excited a lot of developers is the broad range of enhancements to CFML's "other" language: CFSCRIPT. In the past, I've been very disparaging about CFSCRIPT and I've gone so far as to say in several public - and private - forums that I felt CFSCRIPT should be deprecated and no further effort spent on it. It was always a bit half-baked with weird restrictions and lots of important features missing. It was annoying to use, because you often had to switch back to CFML's tags to get things done. With increased use of CFCs, the restrictions in CFSCRIPT made it even more painful to use because you could not specify function arguments easily in CFSCRIPT - no types, no defaults - and you couldn't express a function's access or return type.

[Read more →]

Tags: adobe · cfml-advisory · coldfusion · railo

Restarting Railo with Ant

November 10, 2009 ·

On Twitter, Marc Esher just asked if my Scala compile-deploy process also included restarting Railo to pick up the new JAR file. Yes. I do it via Ant as follows:
<target name="restartrailo" description="Restarts the Railo server.">
      <get
         src="http://${server.name}:${server.port}/test/command/restart_server.cfm?admin_password=${admin.password}"
         dest="${www}/test/command/restart_output.txt"/>
      <loadfile property="restart.status" srcFile="${www}/test/command/restart_output.txt"/>
      <echo message="Restart status: ${restart.status}"/>
      <delete file="${www}/test/command/restart_output.txt"/>
   </target>
restart_server.cfm looks like this:
<cfsilent>
   <cftry>
      <cfadmin
         action="restart"
         type="server"
         password="#url.admin_password#"
         remoteClients=""/>

      <cfset status = "RESTARTED"/>
   <cfcatch type="any">
      <cfset status = "FAILED: #cfcatch.message# (#cfcatch.type#)"/>
   </cfcatch>
   </cftry>
</cfsilent><cfoutput>#status#</cfoutput>
A failure to restart Railo does not cause the build to fail (but it probably should - I ought to set the HTTP status to 500 if I get an exception to cause the Ant get task to fail).

Tags: railo

Compiling Scala code with Ant

November 10, 2009 ·

I'm working on a Railo project that is using some Scala code for part of the system and I'm using Ant to drive the build process. The Scala website has a lot of tools and documentation and you can read about compiling Scala with Ant for the basics of how to get started. What they don't cover there is what is needed to bundle up that compiled Scala code and put it somewhere that Railo can get at. Here's the Ant task I use to create and deploy a JAR:
<target name="publisher" depends="build-scala,docs-scala" description="Deploys the Publisher and generates its documentation.">
      <jar destfile="${www}/WEB-INF/railo/lib/Publisher.jar" basedir="${build.dir}"/>
      <copy file="${scala.home}/lib/scala-library.jar" todir="${www}/WEB-INF/railo/lib"/>
   </target>
${www} defines my web root and ${scala.home} defines where Scala is installed on my system. Read on for more details of the build-scala and docs-scala tasks...

[Read more →]

Tags: coldfusion · oss · railo

TextMate, CFML, Scala, Git

November 10, 2009 ·

Another note to self. I love TextMate! It's my primary code editor for most work these days (on Mac OS X). It's lightweight and extensible and there are lots of bundles available for it. Rob Rohan has created TextMate bundles for ColdFusion, Railo and BlueDragon - I use the Railo one day-in, day-out and I'm very happy with the syntax highlighting and shortcuts it provides. I've also started doing some Scala work recently and there is a pretty good TextMate bundle for Scala as well. And of course a bundle for Git - which is also self-updating (from git)!

Tags: coldfusion · oss · osx · railo

Running Railo 3.1.1.017

November 09, 2009 ·

Although this blog is often running on a bleeding edge "dev" release of Railo, I want to draw your attention to this version as it is a "preview" release, in preparation for our upcoming 3.1.2 public release. If you're comfortable running pre-release software, please consider updating to 3.1.1.017 and helping us test this prior to the public release. You can read more about the 3.1.1.017 preview release on the Railo blog.

Tags: coldfusion · oss · railo

Databases supported by Railo

October 15, 2009 ·

A question just came in from a prospective Railo user: "What databases does Railo support?" I answered it in email directly to that user but figured it was worth a blog post so others can easily see the full list:
  • DB2
  • Firebird
  • H2 Database Engine
  • HSQLDB (Hypersonic SQL DB)
  • MSSQL - Microsoft SQL Server (Vendor Microsoft)
  • MSSQL - Microsoft SQL Server (Vendor jTDS)
  • MySQL
  • JDBC-ODBC Bridge (for Access,MSSQL)
  • Oracle
  • Other - JDBC Driver
  • PostgreSQL
  • Sybase
Of course, since you can configure any JDBC driver directly (under the "Other" option), you can use Railo with any database for which you can get a JDBC driver but most people are interested in the default, out-of-the-box list. We'll be adding support for Apache Derby in a future release.

Tags: coldfusion · oss · railo