ALTERthought Blogs

ALTERthought Blogs Archives: Java

next page ·

5 September 2008

Grails Testing Tip (DO’s, DONT’s and DOH’s): Fixture Data vs. Dependent Data

DO: Distinguish between Fixture Data and Dependent Data
Integration testing can be painful enough under the best of circumstances. Confusion around where data comes from, when it should be deleted, rolled back or committed can derail the even the best laid plans. (This is especially true in more complicated projects that involve multiple datasources, that […]

continue reading... » 0 Comments

2 September 2008

Terracotta Plugin for Grails

I have created a new Grails Plugin to help in the development of Grails applications clustered using Terracotta. The details of this plugin can also be found at http://www.grails.org/Terracotta+Plugin.
Terracotta is a Java infrastructure that allows you to scale your application by clustering JVMs.
Features

Generation of a terracotta configuration file
Generation of terracotta enabled start up scripts for […]

continue reading... » 5 Comments

26 August 2008

Grails Testing Tip (DO’s, DONT’s and DOH’s): The Clean Slate Principle

DO: Follow the Clean Slate Principle
Its happened to all of us, a test that was working just fine, suddenly starts failing because the test database was left in an unstable state. Enter the Clean Slate Principle.
Grails integration tests should endeavor to follow a simple rule:

Leave the database in the state in which you found it.
In […]

continue reading... » 6 Comments

15 August 2008

Grails Tests: Cannot send redirect - response is already committed

When testing controllers, if you make more than one call to a action/closure you may get the error: “Cannot send redirect - response is already committed” But if you want to call one action to modify the database and then test the results in a subsequent call, if you put that call in a […]

continue reading... » 0 Comments

4 August 2008

Terracotta

I looked at Terracotta over the last few weeks. My goals were to understand what it does and how it could be helpful to us in the future. To achieve these goals, while evaluating it I always related it back to past projects to look at how terracotta could have been helpful those.
What I found […]

continue reading... » One Comment

3 August 2008

Drools Plugin for Grails Application

I have just released a Grails Plugin for Drools. The plugin details can also be found at http://www.grails.org/Drools+Plugin.
Drools is a business rule management system (BRMS) and an enhanced Rules Engine implementation, ReteOO, based on Charles Forgy’s Rete algorithm tailored for the Java language.
Features

Easy implementation of Drools
Rules can be stored in file or in database
Rules […]

continue reading... » 0 Comments

31 July 2008

Grails 1.0.3 upgrade issues

Recently, we upgraded our application running in Grails 1.0.1 to 1.0.3. Just to give you an idea, the application is pretty complicated involving multiple data sources, complex hibernate mappings with JPA annotations, legacy system, linking tons of external services etc. We had to overcome few significant hurdles to get our application to run in Grails […]

continue reading... » 2 Comments

1 August 2007

Grails Vs. Rails - the Thrilla in Manila: A Study on Platform Productivity

“Down goes Frazier (Ruby on Rails), down goes Frazier …” If the numbers we are tracking regarding an ongoing Enterprise Groovy/Grails initiative continue to pan out; as a business person, I will have a clear statement in the Rails/Grails debate: “I want all Grails, and I want it all the time.”

Our client is a Fortune […]

continue reading... » 27 Comments

7 June 2007

Revenue on Ruby on Rails …

Okay, so its not the most poetic title, but that’s what you get when Captain Alliteration gets your login and password. For the last 18 months we at ALTERthought have been diving into the deep end of the Ruby on Rails (RoR) pool. The technologies are clearly compelling for a number of reasons that are […]

continue reading... » 10 Comments

13 December 2006

Licence Management for Java Web Applications Using Aspects

This post provides step by setp instruction on implementing license management for Java web applications. I have used open source product TrueLicense for license management and aspects to weave the license verification into the code.
TrueLicense Library Collection(TLC) is a collection of Java packages to securely create, install and verify license for closed source products. TLC […]

continue reading... » 2 Comments

next page ·