Blog
Grails performance monitoring using newrelic
14 Dec, 13

Grails performance monitoring using newrelic

In this post i am going to talk about how we started monitoring the performance of our grails application. We have a big release coming up in couple of months and development on the product was going on from last 10 months. In one of our reviews last month we started...
Grails logging/printing native SQL queries
30 Nov, 13

Grails logging/printing native SQL queries

Grails provide you to log all the hibernate queries by setting logSql=true in the DataSource.groovy file like: environments { development { dataSource { ... logSql = true } } ... But native SQL queries are not logged. To log the SQL queries add groovy.sql in you log4j...
generate link in grails services
26 Nov, 13

generate link in grails services

We can easily generate links in grails controllers, gsps and tag libraries using g.link method of grails tag library. But tag libraries are not accessible in the grails services. Grails provide us grailsLinkGenerator bean to create link in grails services. First...
Schedule quartz jobs
31 Oct, 13

Schedule quartz jobs

In my previous post here I demonstrated how to register a quartz job and trigger it manually. Now it’s time to move ahead and schedule quartz jobs with cron expression. Like I had created a generic class for manual jobs let’s create one for schedule jobs....
Running quartz jobs manually.
30 Oct, 13

Running quartz jobs manually.

It’s fairly simple to create quartz jobs and trigger them manually on the fly. In a maven module, we’ll start by adding quartz dependency to our pom.xml like this: <dependency>...
Lambda expressions with Java 8
30 Oct, 13

Lambda expressions with Java 8

Recently, Java 8 has surfaced with support for Lambda expressions. Being a coding enthusiast I just couldn’t hold back my curiosity and got busy with it. After reading official docs and random coding I found it quite easy and interesting enough. It’s one...
AngularJs with Jade mixing problem
3 Oct, 13

AngularJs with Jade mixing problem

I’ve been struck with a strange problems from last few days, and all my tweaks resulted in vain, finally got to resolve it. Since, I’m still not much adapted to the idea of writing jade and debugging, I thought why not simply write those codes in html and...
Exclude jar dependencies from Grails plugin OR Jar
1 Oct, 13

Exclude jar dependencies from Grails plugin OR Jar

In grails we use the multiple plugins as dependencies and some time it is likely that more than one plugin is using the same jar dependencies of different versions. This scenario will result in a conflict. To avoid such situation we can exclude the unwanted jar...