OPI Blog
Learn from experts in their fields

Browsing Tags: groovy

Equals, Is, CompareTo, and the Groovy Identity Operator
If you’ve ever tried to determine if Object a is the same as Object b in Groovy, chances are you’ve thought a lot about a == b and a.equals(b) and a.is(b). To appropriately ask this ...
Aug 7, 2018
Apache Kafka and Reactive Spring Boot
This post is a continuation of the two part series exploring Apache Ignite, Apache Kafka, and Reactive Spring Boot concepts. This part covers the use of Reactive Kafka consumers to return live database events to ...
Jul 26, 2018
Streaming Apache Ignite changes in Apache Kafka Topics
This is a two part series exploring Apache Ignite, Apache Kafka, and Reactive Spring Boot concepts. This part covers the setting up of Apache Ignite as a datasource and using Apache Kafka as a streaming ...
Apr 3, 2018
Getting Groovy with Mongo Monitoring
MongoDB does something interesting that we aren’t used to in the Java world – if you use the MongoClient object, it manages the pooling for you on the server side. This is different than how ...
Dec 14, 2017
Serializing Groovy Traits with Jackson
Working on a Groovy and Spring Boot project, we encountered a serialization issue on an object that implemented a Groovy trait. The object would be serialized correctly until the JsonFormat annotation was used on one ...
Passing Command Line Arguments to a Spring Boot Application via a bootRun Task in Gradle
There currently seems to be no easy way to pass arguments to a Spring Boot application launched using the bootRun task in Gradle. There are plenty of stack overflow questions asking about this and at ...
GraphQL in Spring Boot (Take Two)
When I wrote “Implement a GraphQL Endpoint in a Groovy App” this past July, I had yet to actually use GraphQL anywhere other than a pet project. Well, that has changed and so have my ...
Sep 28, 2017
Aggregate Services into a Single Swagger
By now most companies that have pointed their ship towards some sort of service architecture (in buzz words, microservices) have also discovered an API explorer to ease the pains of developers that are trying to ...
Sep 26, 2017
Masking sensitive data in Log4j 2
A growing practice across many organizations is to log as much information as is feasible, to allow for better debugging and auditing. Tools like Splunk and ELK may it even easier to index the logs, ...
Unit Testing Camel Routes with Spock
Introduction Apache Camel’s variety of components and message routing logic capabilities makes testing a requirement to ensure your routes are performing as expected. Since Camel routes are built within a context, it usually follows that ...