An Architect's View

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

An Architect's View

Entries Tagged as railo

Restarting Railo with Ant

November 10, 2009 · No Comments

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).

No CommentsTags: railo

Compiling Scala code with Ant

November 10, 2009 · No Comments

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 →]

No CommentsTags: coldfusion · oss · railo

TextMate, CFML, Scala, Git

November 10, 2009 · 4 Comments

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)!

4 CommentsTags: coldfusion · oss · osx · railo

Running Railo 3.1.1.017

November 09, 2009 · No Comments

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.

No CommentsTags: coldfusion · oss · railo

Databases supported by Railo

October 15, 2009 · 2 Comments

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.

2 CommentsTags: coldfusion · oss · railo

What is the Railo Enterprise Bundle?

October 02, 2009 · 2 Comments

I've received some questions about the Railo Enterprise Bundle so I figured it would be good to blog an answer for everyone. The questions are usually couched in terms of "what's in the enterprise version of Railo that isn't in the free version?" and, given Adobe's and New Atlanta's tiered editions and pricing, it's not too surprising that people think the Railo Enterprise Bundle is a different "edition" of the Railo server that costs money (and has more features). Perhaps we've chosen a misleading name for it but the bundle is pretty much exactly that: a collection of stuff you can buy, but at a reduced price. So what do you get in the bundle?
  • FusionReactor Enterprise Server Monitor
  • FusionDebug Interactive Step Debugger
  • All the current Railo commercial extensions
In addition, you get one year's Silver support from Railo and a year's maintenance on FusionReactor and FusionDebug. And you save money over buying all the components separately. Let's dig into the bundle more deeply...

[Read more →]

2 CommentsTags: coldfusion · railo

Railo at CFUnited

September 14, 2009 · 4 Comments

It's a month since CFUnited and I haven't yet posted my thoughts on the conference. I started writing but it turned into an essay and I'm not sure it's worth posting in its entirety, especially since many others have posted their reviews (mostly all glowing - and rightly so!). I will post a brief review of the conference soon - it's on my Things to-do list and everything on that list gets done (eventually). The other overdue blog post on my Things to-do list covers what it was like to be a sponsor at CFUnited. A first for me (sort of). I've been attending (and speaking) at CFUnited since it was CFUN'04 (when I covered the use of Mach-II at Macromedia). Sure, Macromedia and Adobe have been regular sponsors but that is the ColdFusion product team and I was going independently as part of another team - the joys of a big company - so I never felt I was a sponsor (I never worked for the ColdFusion product team - even tho' a lot of people seem to think I did!). This year - 2009 - Railo was a silver sponsor of CFUnited and so I spent quite a bit of time around the Railo "booth" talking to attendees.

[Read more →]

4 CommentsTags: cfunited09 · coldfusion · openbd · oss · railo

CFPanel - ColdFusion Moving Forward

August 19, 2009 · No Comments

This Friday, at noon Eastern, I'll be on the CFPanel show, created by Dan Vega and Todd Sharp. Myself, Ray Camden and Adam Lehman will be talking about how ColdFusion as a language is moving forward. All three of us are members of the CFML Advisory Committee. Two of us are on the board of 4CFF, the new non-profit corporation formed to promote the CF community and Open Source projects. Two of us represent CFML engine vendors. It should be an interesting and lively debate!

No CommentsTags: adobe · coldfusion · oss · railo

Railo 3.1 Final Released

August 16, 2009 · 2 Comments

In all the activity of CFUnited, I forgot to post that Railo 3.1 Final was officially released (at CFUnited). It's build 3.1.1.000 and it's available for download right now - or you can easily upgrade your existing Railo 3.1.0.xxx Beta server by selecting Services > Update in the Server Administrator (as shown in these instructions on upgrading Railo on our community site). For folks who've been reluctant to run pre-release software on a production server, this is the build you've been waiting for :) I was so busy as CFUnited I didn't get around to upgrading my blog or local development server until five minutes ago. As usual, the update was fast and smooth!

2 CommentsTags: coldfusion · railo

CFUnited is almost here

August 11, 2009 · 2 Comments

Since several people have asked, I get into CFUnited on Wednesday morning, hopefully in time for the keynote. I got a good deal on a red eye from San Francisco - it's non-stop and I hate burning daylight traveling. I've already posted my intended session schedule (PDF) so you can track me down easily although I do have a couple of client meetings to fit in and time on the Railo booth. Yes, Railo are sponsoring CFUnited and we'll be there at the Railo booth with schwag to give away, a sign-up sheet for folks interested in our consulting services and, of course, Gert, Mark, Peter and myself to answer all your questions about the Railo server as well. I'm giving my Living in the Cloud presentation on Wednesday afternoon (last session before dinner) and again on Saturday (last session of the conference). I'm also hosting a CFML Advisory Committee BoF on Wednesday night where you can hear what we've been up to over the last year since the committee was formed and hear about our plans for the future. There are going to be some interesting announcements at CFUnited that will affect lots of CF developers. See you Wednesday!

2 CommentsTags: cfml-advisory · cfunited09 · coldfusion · railo