OPI Blog
Learn from experts in their fields

Search Results for: Grails

Aug 30, 2016
Monitoring Grails Applications The Easy Way
Grails allows you to create RESTful APIs or Web applications much more quickly than other JVM frameworks. You may be surprised to know, though, that Grails also provides a number of handy features to help ...
Jun 7, 2016
Using Apache Camel in Grails 3
Grails 2 has a plugin for Apache Camel called Routing but that plugin hasn’t been upgraded to Grails 3 yet. Luckily, Grails 3 is just Spring Boot so we can use the Camel Spring Boot ...
Using secondary datasources in Grails 3
Something changed in Grails 3 and how datasources are configured. If you have datasources defined like this: dataSources: dataSource: pooled: true jmxExport: true driverClassName: org.h2.Driver username: sa password: dbCreate: create-drop url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE secondary: pooled: true ...
Mar 1, 2016
Unit Testing URI-Based Grails Filters
This week while implementing a simplified version of Spring MVC in a Grails 2.x project, I ran into an interesting Grails bug (OK, more than one; it’s been a rough week).  Specifically, “GRAILS-8702: Unit Testing ...
Jan 7, 2016
Changing the embedded server in Grails 3
I have a pet project that I’ve written in Grails 3. I run it on an already-busy cloud server via the fat jar. I kept the default Tomcat configuration but soon I kept getting out ...
Distributed Grails with Docker and Hazelcast
Normally a clustered application can be designed in a stateless manner which allows requests to be dispatched to any combination of nodes, but sometimes it is desirable to share data across the cluster. This post will ...
Dec 22, 2015
Configure Jenkins to dynamically create a database for your Grails tests
Test pollution can be a frustrating issue to look into, especially when the failures are sporadic. These may be caused by reliance on hard-coded fields (such as ids), timezone/DST issues, or previous test case leakage ...
Asynchronous Programming in Grails 3
Grails has had support for asynchronous programming for some time now but it seems to have become more well-defined in Grails 3. It has Promises, Events, and even asynchronous processing in GORM. The article is ...
Sep 29, 2015
Tweaking Column Types in Grails
We had been working on this Grails 2 app for a few weeks and we were finally ready to put it on a test server (instead of running it like run-app locally). More importantly we ...
Getting Grails Database Connections to Reconnect
Where I work, a bunch of the Grails have many, many datasources. One app in particular I was brought in on because it was dropping a bunch of connections on Saturday night or Sunday morning. ...