By barneyb on March 23, 2009
In my last post I mentioned the issue with using CFGroovy's Hibernate when Hibernate is already loaded by the app server, such as the case with JBoss 4.2+ and a certain unreleased CFML runtime (cough … Centaur … cough). The gist of it is that Hibernate appears to create some static references to itself that [...]
Posted in cfml, groovy, tools
By barneyb on March 23, 2009
It was a big weekend for CFGroovy. In addition to the 1.0 release, I started doing some work for the 1.x series (which is available in the trunk). There are several significant changes to the engine:
Groovy has been upgraded to 1.6.0 from the previous 1.5.6 version.
You can specify a custom Groovy JAR for your CFGroovy.cfc [...]
Posted in cfml, groovy, tools
By barneyb on March 23, 2009
After a lengthy burn in period, I've officially released CFGroovy 1.0. It is identical to CFGroovy 1.0RC3, so if you're running that version there is no need to upgrade. You can get the 1.0 engine binaries, 1.0 demo binaries (including the engine), view the 1.0 tag in Subversion (engine or demo), or visit the project [...]
Posted in cfml, groovy, tools
By barneyb on March 17, 2009
Ray Camden posted an interesting article over on InsideRIA about expanding short urls using jQuery and ColdFusion. After reading the article, I thought he was overcomplicating things somewhat by relying on the url shortening services' APIs to do the lookups. Yes, that's what APIs are for, but for this case, HTTP happens to be a [...]
Posted in cfml, development, javascript
By barneyb on March 17, 2009
In Spring 1.2 (and ColdSpring, which emulates it), you have the "singleton" attribute, which was a boolean flag for whether a bean is a singleton (the default) or a prototype (instantiated afresh for every getBean call). If you've used Spring 2.0+, you've probably come across the "scope" attribute, which supersedes the "singleton" attribute, and allows [...]
Posted in cfml, development, tools
By barneyb on March 2, 2009
I'm a huge fan of Groovy, but it's major downside drove over me like a bus this evening. What's that, you say? Performance, of course. Runtime "stuff" necessarily happens at runtime, and therefore affects performance. Does this matter in most cases? No, absolutely not. In general it's far cheaper to buy hardware than to employ [...]
Posted in cfml, coldfusion, groovy, project euler
By barneyb on February 20, 2009
Project Euler doesn't support any kind of public stats for users, which is kind of lame I thought. I posted about it on the Project forum and got no response, so I built my own: http://barneyb.com/projecteuler/. The code is a total hack, faking a login to grab the protected profile page and then doing some [...]
Posted in cfml, project euler
By barneyb on February 4, 2009
For CFGroovy 1.1, I want to do this sort of thing, where GroovyFactoryBean will instantiate the specified Groovy object and return it, suitable for injecting into an arbitrary CFC of choice:
<bean id="groovyFactory" class="cfgroovy.GroovyFactoryBean">
<constructor-arg name="cfgroovy"><ref bean="cfgroovy" /></constructor-arg>
</bean>
<bean class="cfcs.service">
<constructor-arg name="dao">
<bean factory-bean="groovyFactory" factory-method="getObject">
<constructor-arg name="clazz"><value>com.barneyb.Dao</value></constructor-arg>
[...]
Posted in cfml, groovy, tools
By barneyb on February 4, 2009
This is the final expected RC for CFGrovoy 1.0 and includes a couple more API tweaks (backwards compatible, of course). Bad form to do this right now, but like the attributes-to-params change, I want to get them in before the 1.0 release so I can build the next round of enhancements without mucking up the [...]
Posted in cfml, database, development, groovy, tools
By barneyb on January 30, 2009
I found this uncommitted change to a file on one of our shared dev servers today:
<CFIF IsDefined("request.traceactive")><CFELSE><CFSET request.traceactive = "false"/></CFIF>
<CFSET request.traceactive = 'false'/>
I don't even know where to start…
Posted in aside, cfml