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.

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> <groupId>org.quartz-scheduler</groupId>...

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

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

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

Using Spring’s Java based configuration.

Using Spring’s Java based configuration is fairly straightforward and more flexible. In order to do it, you will have to annotate your java class, that is going to contain your beans, with @Configuration and as we have added the component-scan in our one post...

Configure servlets in Grails application.

Recently, I had to configure jolokia in my grails application. Jolokia is a JMX-HTTP bridge giving an alternative to JSR-160 connectors. Grails doesn’t provide web.xml directly to configure but you can do it by installing the templates. Just issue the following...

jQuery Select2 with ajax in grails

jQuery Select2 is an awesome jQuery plugin. It provides very interactive UI for select drop downs. Select2 comes with AJAX support built in. Instead of giving list to select you can make ajax request and get dynamic data. Following are the steps to get the dynamic...