All Posts > JVM

JVM

Dynamic SFTP Connection Factory for Spring Integration

December 20th, 2017

Dynamic SFTP Connection Factory for Spring Integration

Chris Tosspon
JVM

Serializing Groovy Traits with Jackson

December 14th, 2017

A simple example of serializing objects with Groovy traits using the Jackson library.

Chris Tosspon
JVM

Passing Command Line Arguments to a Spring Boot Application via a bootRun Task in Gradle

December 7th, 2017

Example of how to pass command line arguments to a Spring Boot Application via the bootRun task in Gradle.

Rob Boler
JVM

Missing Codecs in MongoDB

November 28th, 2017

What to do when you get org.bson.codecs.configuration.CodecConfigurationException: cant find a codec for class java.math.BigDecimal.

Mike Hostetler
JVM

Spring Webflux - Functional Endpoints

November 16th, 2017

This post will look at how to set up a simple router and get global error handling in place using the new webflux.fn routing available in Spring 5.

Iain Coffield
JVM

Handy Gradle Recipes

November 8th, 2017

Some tweaks and hints for gradle

Mike Hostetler
JVM

Functional Testing With Embedded Kafka

October 25th, 2017

Functional Testing With Embedded Kafka in a Spring Boot Application using a Gradle task.

Brendon Anderson
JVM

Aggregate Services into a Single Swagger

September 28th, 2017

Aggregate Services into a Single Swagger

Matt Schroeder
JVM

Masking sensitive data in Log4j 2

September 26th, 2017

Automatically mask sensitive fields in Log4j 2 to protect your users privacy and comply with PCI standards.

Igor Shults
JVM

Real Time Chat Application with Kotlin and Firebase

September 6th, 2017

Real Time Chat Application with Kotlin and Firebase

Joseph Roskopf
JVM

Unit Testing Camel Routes with Spock

August 22nd, 2017

Unit testing Camel Routes with the Spock testing framework in a Spring Boot application.

Chris Tosspon
JVM

Intro to Reactive Web in Spring 5

July 18th, 2017

Intro to Reactive Web in Spring 5

Mike Plummer
JVM

Implement a GraphQL Endpoint in a Groovy App

July 6th, 2017

Implement a GraphQL Endpoint in a Groovy App

Matt Schroeder
JVM

Exciting things in Spring Boot 2

June 27th, 2017

I looked at the release notes for Spring Boot 2.0.0.M1 not expecting a lot of exciting changes but was surprised by some compelling things. There is the usual “deprecated classes are removed” and “Dependency X is upgraded” but there are some more…

Mike Hostetler
JVM

Database Migrations in Flyway

June 21st, 2017

Database migration in the Java-world with Flyway

Mike Hostetler
JVM

Using MariaDB4j for a Spring Boot Embedded Database

June 19th, 2017

MariaDB4j is an embedded Java wrapper for spinning up a MariaDB instance for local development or continuous integration testing purposes.

Jeff Sheets
JVM

Spring Integration Testing with Spock Mocks

April 18th, 2017

How to inject Spock mocks into the Spring Context during integration tests.

Derek Eskens
JVM

Camel is closing JPA sessions

March 9th, 2017

Apache Camel closes the JPA session after a step on the route. This has ideas on how to fix it.

Mike Hostetler
JVM

Implementing a Google DataFlow Pipeline

October 18th, 2016

Implementing a Google DataFlow Pipeline

Tim Drahn
JVM

Analyzing Kafka data streams with Spark

October 13th, 2016

An example Java 8 Spark application describes exactly once processing and analysis of a Kafka topic serving a (simulated) real time 911 call data stream.

Object Partners
JVM

Using Flyway for database migrations in Ratpack apps

October 7th, 2016

Using Flyway for database migrations in Ratpack apps

Object Partners
JVM

Getting more properties through Spring HATEOAS

September 16th, 2016

Using the Spring HATEOAS API to expose more properties from the object

Mike Hostetler
JVM

Monitoring Grails Applications The Easy Way

August 30th, 2016

Using out of the box features along with a small amount of coding, you can extract a lot of metrics from your Grails applications

Eric Foster-Johnson
JVM

Enhancements to Spring RestTemplate

August 16th, 2016

Adding Base URL, Basic Auth and URL Parameters Enhancements to Spring RestTemplate

Paul Ferguson
JVM

JUnit 5 with Spring Boot (plus Kotlin)

July 26th, 2016

An overview of new features in JUnit 5 and integrating it into a Spring Boot application written in Kotlin

Mike Plummer
JVM

Using Apache Camel in Grails 3

June 7th, 2016

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 component … with some caveats. After you add the Camel…

Mike Hostetler
JVM

Graylog with Spring Boot: Open source log and event analysis

May 4th, 2016

Spring Boot application that sets up a self-contained Graylog instance for event archival and analysis.

Mike Plummer
JVM

Resolving Codenarc Compilation Warnings

March 16th, 2016

To resolve compilation warnings when using Codenarc 0.19+, look at the enhanced rules.

Object Partners
JVM

Using secondary datasources in Grails 3

March 9th, 2016

Something changed in Grails 3 and how datasources are configured. This post will explain what you need to do.

Mike Hostetler
JVM

Unit Testing URI-Based Grails Filters

March 1st, 2016

A workaround for the inability to mock URI-based filters in Grails.

Igor Shults
JVM

An Introduction to Kotlin

February 23rd, 2016

An overview of the Kotlin programming language which keeps the good parts of Java while reducing boilerplate to promote better Object-Oriented code.

Mike Plummer
JVM

Mapping JPA entities to external REST resources in spring-data-rest

February 18th, 2016

This Spring Boot example shows how you can map JPA entities to REST endpoints and embed them in the HATEOAS output via spring-data-rest and annotations.

Object Partners
JVM

Automatically JUnit Test DTO and Transfer Objects

February 16th, 2016

Automatically JUnit Test DTO and Transfer Objects

Jeff Torson
JVM

Building Continuous Delivery: Rock-solid builds with Gradle

February 1st, 2016

Continuous delivery is the very first principle behind the Agile Manifesto, and yet it continues to plague software development teams. In this talk, David Norton will give a brief overview of continuous delivery practices and then focus on the area…

David Norton
JVM

Using Groovy Based Spring Configuration

January 12th, 2016

A guide to using Groovy for Spring configuration both JavaConfig and Grails style and adding Groovy configuration to web.xml using ContextLoaderListener.

Object Partners
JVM

Changing the embedded server in Grails 3

January 7th, 2016

How to change the server from Tomcat to something else in Grails 3s fat jar

Mike Hostetler
JVM

Flirting with disaster: A dangerous use of Groovys dynamic method invocation

January 5th, 2016

An example of when not to use Groovys dynamic method invocation feature. Injection attack vulnerability.

Object Partners
JVM

Distributed Grails with Docker and Hazelcast

December 28th, 2015

Example of clustering Grails using Docker Compose and distributing data and processing within the cluster using Hazelcast.

Mike Plummer
JVM

Configure Jenkins to dynamically create a database for your Grails tests

December 22nd, 2015

Test pollution can be frustrating to look into, especially when the failures are sporadic. Running your tests on the same database may also lead to problems.

Igor Shults
JVM

From POC To MPA

December 17th, 2015

From POC To MPA

Aaron Hanson
JVM

Spring Boot With (Pac4J) OAuth

December 9th, 2015

Spring Boot sample application using Pac4J OAuth providers and Spring Security.

Aaron Hanson
JVM

Avoiding a common spring annotation configuration mistake

December 7th, 2015

Making sure spring singletons are indeed singletons.

Neil Buesing
JVM

Asynchronous Programming in Grails 3

October 22nd, 2015

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 in GORM

Mike Hostetler
JVM

JOOQ Worthy

October 1st, 2015

A discussion about the JOOQ DSL

Object Partners
JVM

Tweaking Column Types in Grails

September 29th, 2015

Changing Hibernate mappings in a Grails application

Mike Hostetler
JVM

Groovy gotcha: Passing zero arguments to a method that expects one

September 2nd, 2015

Groovy will compile just fine in certain scenarios where no arguments are passed to a method that expects one.

Igor Shults
JVM

Getting Grails Database Connections to Reconnect

August 19th, 2015

Getting Grails Database Connections to Reconnect

Mike Hostetler
JVM

Sharing Grails HAL and JSON Renderers

August 13th, 2015

Details a method to share Grails object marshallers across XML, JSON and HAL flavors of web services.

Patrick Double
JVM

Retrofit: API Integration Made Easy

August 4th, 2015

A quick introduction to Retrofit. Well cover the basics for how to convert any API into a type-safe Java interface using @GET, @POST, @QUERY, and @PARAM.

Darin Drobinski
JVM

Creating a Mocked RESTful Sandbox Server using Groovy

June 25th, 2015

Create a mocked RESTful web service using Groovy, which allows users to test out the service without changing any data.

Object Partners
JVM

Waiting for a Redirect Chain to Settle using Selenium WebDriver

June 4th, 2015

Some interactions with the browser can be tricky. This post describes a way to wait for the document to settle before continuing.

Patrick Double
JVM

ETags and Spring Data REST

June 2nd, 2015

A discussion of ETag usefulness in APIs and an example project created from Spring Data RESTs built-in ETag support.

Object Partners
JVM

Grails, PostgreSQL 9.4 and JSONB

May 26th, 2015

On a recent grails project using postgreSQL 9.4 that took advantage of the jsonb datatype, we ran into an issue mapping data back and forth to our domain

Object Partners
JVM

List of Groovy versions for each version of Grails

May 14th, 2015

A compiled list of which Groovy version goes with a version of Grails.

Igor Shults
JVM

My First Ratpack App: What I Learned

May 12th, 2015

I learned a lot building my first Ratpack application. I hope this post will help you on your way to building your first Ratpack application.

Brendon Anderson
JVM

Intelligent microservice metrics with Spring Boot and Statsd

May 7th, 2015

Intelligent microservice metrics with Spring Boot, Dropwizard, and Statsd

Object Partners
JVM

Deploying Grails 3 Applications (and other fat jars) to Heroku

April 23rd, 2015

For deploying to Heroku, outlines a method using Gradle to work-around the 15 minute build timeout still leverage the advantages of building from source.

Patrick Double
JVM

Interfacing Groovy (and Java) with Native Libraries

April 21st, 2015

As much as we hate to admit it, from time to time there are benefits to languages that operate outside the JVM. Whether its interfacing with hardware or simply

Mike Plummer
JVM

Easily get GORM max size constraints

March 11th, 2015

Easily get GORM max size constraints

Igor Shults
JVM

Another Method for Admin screens with Grails

March 6th, 2015

I came from a background of making sites with Django and after I starting going head-first into Grails, one of the things I missed was a really good and easy to make an admin section. You know — something that “just works” to do some basic CRUD…

Mike Hostetler
JVM

Customize your Grails test reports

March 3rd, 2015

Customize your Grails test reports

Igor Shults
JVM

Groovy Closures Create Tidy, Flexible Services

February 3rd, 2015

Discussing Groovy Closures and why they are useful.

Object Partners
JVM

Keep Calm & Groovy On!

January 23rd, 2015

Grails and Groovy will continue to be part of our toolkit and part of our client solutions in the future.

Object Partners
JVM

Reset Your H2 Database For A Clean State Between Functional Tests

January 13th, 2015

For automated tests, a solution to reset your H2 database between each test.

David Norton
JVM

Grails cdn-asset-pipeline Plugin for Improving Web Site Performance

January 6th, 2015

Easily push your Grails assets to a S3 backed CDN with the cdn-asset-pipeline.

Patrick Double
JVM

Copying multiple directories in a single Gradle task with up-to-date checking

December 11th, 2014

How to write a single Gradle task to copy multiple directories and still use up-to-date checking.

Object Partners
JVM

Case-insensitive criteria ordering on child properties

December 3rd, 2014

A workaround for a couple of Grails 2.x bugs and changes that have made it difficult to sort criteria case-insensitively when using child/nested properties.

Igor Shults
JVM

Vert.x Fat Jar Deployments

November 25th, 2014

Fat jar deployments in Vert.x can simplify the delivery of your software. One drawback is limited options for module dependencies, which this post will address.

Object Partners
JVM

UDP Server with Spring Boot and Reactor

November 18th, 2014

A tutorial and accompanying project for creating a simple UDP server with Spring Boot and Reactor.

Object Partners
JVM

StringTemplates in Groovy

November 11th, 2014

Using the StringTemplateEngine in Groovy -- troubleshooting, gotchas, and everything else.

Mike Hostetler
JVM

Experiences with Publishing a Grails Plugin

October 29th, 2014

Blog on creating a Grails plugin to implement HTTP compression.

Patrick Double
JVM

Logging REST Exceptions with Spring

October 21st, 2014

Logging REST Exceptions with Spring using ResponseEntityExceptionHandler

Jeff Sheets
JVM

GR8Conf US Recap: Why Your Company Should Adopt Groovy!

August 25th, 2014

At the 2014 GR8Conf US, Scott Hickey from Object Partners and Jim McGill from Mutual of Omaha spoke about a large mission-critical Groovy application.

Object Partners
JVM

Static website generation in Groovy

July 29th, 2014

Grain is a static site generator written in Groovy

Mike Hostetler
JVM

Grails API Functional Testing

July 15th, 2014

Examples of testing Grails APIs with Grails Rest Client Builder, Groovy Http Builder, and Apache Http Client

Object Partners
JVM

Groovys .with() and multiple assignment

July 9th, 2014

Groovy has a limitation that restricts multiple assignment to simple variables. However, by using with(), we may be able to work around that.

Igor Shults
JVM

Gradle Summit 2014 Recap

June 18th, 2014

Review of material and presentations from Gradle Summit 2014, Santa Clara, California.

Object Partners
JVM

Inline initialization of Java Maps

June 5th, 2014

Inline initialization of Java Maps is never pretty, this solution provides a type safe and efficient way to do so.

Neil Buesing
JVM

Run Grails Commands on Heroku

May 22nd, 2014

Instructions on how to run Grails commands on Heroku using an example of how to run Grails migrations on Heroku

Brandon Fish
JVM

Configuring Spring Security CAS Providers with Java Config

May 20th, 2014

It can take a little digging to move Spring Security + CAS XML configuration to Java. Here is the Java config equivalent to the SS documentations example.

Object Partners
JVM

Automatically test your dirty Grails classes

May 15th, 2014

A script to grab the list of modified files from git, parse their filenames, and pass those names for testing in grails test-app.

Igor Shults
JVM

Grails R14 Error (Memory quota exceeded) on Heroku

May 13th, 2014

Explains how to resolve the Grails R14 Error when it is encountered on Heroku.

Brandon Fish
JVM

Reuse your Gradle logic across the enterprise

April 24th, 2014

Gradle build code will sometimes need to be reused across the enterprise. Here are a few ways to do so.

David Norton
JVM

Tracking Hibernate statistics across Grails actions

April 22nd, 2014

Using controller filters to configure tracking and logging of Hibernate statistics in HTTP requests.

Igor Shults
JVM

Spock Mock Cheatsheet

April 8th, 2014

Summary of unit test mocking capabilites and syntax of Spock test framework

Object Partners
JVM

A Groovy Time with UPnP and WeMo

March 25th, 2014

How to control a WeMo device using Groovy

Brendon Anderson
JVM

GUM Recap - Enterprise Grails with Spring Batch

February 13th, 2014

Recap of John Engelmans presentation at the January 2014 Groovy Users of Minnesota (GUM) meeting on utilizing Spring Batch with Grails applications.

Object Partners
JVM

Memoization in Groovy

January 28th, 2014

The performance of expensive calculations in Groovy can be increased with the use of memoization.

Brendon Anderson
JVM

Simpler Stored Procedures with Groovy

January 24th, 2014

Using Groovy almost makes calling Stored Procedures an enjoyable process. See how to process Sql Output Parameters and ResultSets easily in Groovy

Jeff Sheets
JVM

Grails Config Values Per Tomcat Host

December 11th, 2013

An example of using JNDI to provide a Grails application config values per Tomcat Host.

Object Partners
JVM

Guicing up Dropwizard

November 19th, 2013

Implement dependency injection in Dropwizard with Google Guice.

Object Partners
JVM

Parallel Grails Functional Tests with Geb and Gradle

November 14th, 2013

Speed up your Grails functional tests by running them in parallel with Gradle

Object Partners
JVM

Set up a pseudo test suite in Grails while doing a major upgrade

November 12th, 2013

Describes a technique for setting up a temporary test suite while upgrading a Grails application.

Object Partners
JVM

Testing GWT with GwtMockito

November 7th, 2013

How to write tests for GWT using GwtMockito. GwtMockito makes it possible for you to write Mockito unit tests for your GWT code; these tests execute a lot faster than GWTTestCase or PowerMockito tests, making your build times more scalable.

Neil Buesing
JVM

Testing Grails With a Travis Build Matrix

October 29th, 2013

An example Grails build configuration for creating a Travis build matrix

Brandon Fish
JVM

A Standalone Service Tier with Spring

October 24th, 2013

Building a Standalone Service Tier with Spring Integration and RabbitMQ

Object Partners
JVM

Using the Groovy Console as a Java Production Support Tool

October 22nd, 2013

As an advanced debugging technique, the Groovy Console is a great tool for interactively working with Java or Groovy objects serialized from running code.

Object Partners
JVM

What I wish I knew about Grails before my first Grails Project

October 15th, 2013

Some thoughts and ideas on how I would go about my first Grails project, if I had the chance to start it over.

Neil Buesing
JVM

Reverse-Engineer Old Databases With Grails

October 10th, 2013

Create Grails domain classes from your legacy database tables.

Eric Foster-Johnson
JVM

Building Web Apps in Ratpack

October 9th, 2013

How to build, package, and deploy applications with Ratpack

Object Partners
JVM

Migrating to Grails 2.3

October 8th, 2013

Migrating to Grails 2.3

Object Partners
JVM

Rollback Multiple Datasources in Grails Integration Tests

September 24th, 2013

Simple setup for Grails integration tests to rollback from multiple databases when using the Datasources plugin or 2.3 built-in support.

Jeff Sheets
JVM

The Benefits of Using assertThat over other Assert Methods in Unit Tests

September 18th, 2013

The released of JUnit 4.4 added a new method assertThat which is a much improved way to write assertions vs the old assert methods.

Object Partners
JVM

Type Safe Page Objects with Geb

September 12th, 2013

How to get the benefits of type-safe page objects with the Geb functional testing framework

Object Partners
JVM

Optional Typing in Groovy

August 19th, 2013

Discussion of Groovys Optional Typing system with benefits and drawbacks outlined.

Object Partners
JVM

Customizing MOP in Groovy

July 30th, 2013

Demonstrates using the Groovy Meta Object Protocol framework to build a custom MetaClass implementation.

Object Partners
JVM

Creating self-contained, executable Jars with Gradle and Shadow

July 16th, 2013

Describes how to use Gradle and its Shadow plugin to create a self contained, executable Jar. No more classpath management.

Object Partners
JVM

Custom Authentication with the Grails Spring Security Core Plugin

July 11th, 2013

A tutorial with backing github project detailing how to build custom authentication solutions with the Grails Spring Security Core plugin.

Object Partners
JVM

Configuring Quartz 2 with Spring in clustered mode

July 9th, 2013

Run Quartz jobs to fire only once per cluster, not once per server, while still providing beans from the Spring managed context and using the latest version of Quartz.

Jeff Sheets
JVM

Getting Groovy with Spring and WebSockets

June 25th, 2013

A demonstration of leveraging Project Tyrus with Groovy and Spring to build a WebSocket-driven application.

Object Partners
JVM

A Tale From the Grails trenches: Nasty 1.3.X Bug

June 11th, 2013

Grails 1.3.x has a nasty bug if you call the render method in a controller with the wrong signature

Object Partners
JVM

Redefining the Service Layer with Groovy Categories

June 5th, 2013

Demonstrating the use of Groovy Categories to redefine a traditional service layer implementation.

Object Partners
JVM

Redefining the Service Layer with Groovy Categories

June 5th, 2013

Demonstrating the use of Groovy Categories to redefine a traditional service layer implementation.

Object Partners
JVM

Use Final

May 30th, 2013

Using final can seem like overprotectiveness to some. It is certainly misunderstood by many.

Object Partners
JVM

Accessing Grails Configuration with Spring Property Placeholders

May 23rd, 2013

Demonstrates using Spring property placeholders to access Grails configuration directives.

Object Partners
JVM

Poly Driver: A Phantom Band-Aid for Geb

May 6th, 2013

An introduction to the Poly Driver plugin.

Object Partners
JVM

HTML-Encoding UTF-8 Characters

April 24th, 2013

It happens sometimes that a web page isnt using UTF-8, but theres a need to display UTF-8 data. Thankfully HTML offers encoding that allows displaying any arbitrary UTF-8 characters.

Object Partners
JVM

Refactoring? Check your settings!

April 16th, 2013

When refactoring, be sure to check your application settings as they may no longer make sense.

Brendon Anderson
JVM

Validating Grails Configurations

April 2nd, 2013

When externalizing grails app configurations for multiple environments I want to ensure values are provided for all the required/expected properties. So I wrote a plugin to help.

Object Partners
JVM

Testing Examples for the Facebook SDK Grails Plugin

March 28th, 2013

Testing Examples for the Facebook SDK Grails Plugin

Object Partners
JVM

Do you want to ROC or be Groovy?

March 26th, 2013

Compares Resource Oriented Computing to Groovy as development platforms for enterprise computing.

Object Partners
JVM

Testing tabular output in Spock

March 18th, 2013

This details a way to create tests similar to FItnesse query fixtures using the Spock framework.

Object Partners
JVM

Grails 2.2 - Publishing your Plugins as Maven Artifacts To Resolve Dependency Resolution Issues

February 13th, 2013

How to deal with dependency resolution changes for plugins in Grails 2.2 without the workaround, by publishing your plugins as Maven artifacts.

Object Partners
JVM

Grails testing - mocking 3rd-party services

February 8th, 2013

How to mock 3rd-party services in Grails functional tests

Object Partners
JVM

Introducing Maprest: A Grails Plugin for Customized and Dynamic REST Services

February 5th, 2013

Introducing Maprest: A Grails Plugin for Customized and Dynamic REST Servcies

Object Partners
JVM

Eclipse Enum Switch Warning

January 31st, 2013

I recently encountered some Java code with what seemed to be an odd warning.

Object Partners
JVM

Profiling Grails Applications With VisualVM

January 25th, 2013

Describe how to profile a Grails application using the built-in Java VisualVM application

Object Partners
JVM

DIY Graphing Calculator: Google Visualization Grails Plugin

January 22nd, 2013

Make your own graphing calculator in Grails with Google Chart Tools, the Google Visualization Plugin, and exp4j

Object Partners
JVM

Gradle Quick Start

January 18th, 2013

Getting started with Gradle, with examples. No installation necessary, get started quickly and painlessly with the included sample project.

Phil True
JVM

Customizing Grails Scaffolding and Adding Accessibility with the Fields Plugin

January 16th, 2013

Customize the way Grails generates user interfaces to get a look much closer to what you need with the fields plugin. Finally, Grails scaffolding can be useful.

Eric Foster-Johnson
JVM

REST Client Testing With MockRestServiceServer

January 9th, 2013

Using Spring MockRestServiceServer for RestTemplate client functional and unit testing, with code samples and examples.

Jeff Sheets
JVM

Using Ant Paths with the Grails Resources Plugin

December 17th, 2012

Using Ant Paths to enhance the Grails Resources plugin while organizing the code into modules with a common pattern.

Object Partners
JVM

A Few Days With Eclipse Juno

August 7th, 2012

Some impressions after using the new Eclipse Juno IDE for a few days.

Object Partners
JVM

Creating a Hierarchical Test Data Builder using Generics

May 17th, 2012

This post show how to create a hierarchical test data builder using generics.

Object Partners
JVM

Unit Testing Controllers in Grails 1.3.7

April 20th, 2012

Some setup and common issues involved with unit testing controllers in Grails 1.3.7.

Igor Shults
JVM

Tomcat v7 Parallel Deployment

April 17th, 2012

The Apache Tomcat v7 brings with it a feature called Parallel Deployment, which allows deploying more than one application to the same context.

Object Partners
JVM

Grails mock objects: mockFor vs. Gmock

April 10th, 2012

Comparing writing Grails units tests using mock objects written with mockFor and Gmock.

Object Partners
JVM

LinkedIn API in a Grails Application

April 3rd, 2012

Shows how to setup the oauth-plugin and LinkedIn API in a Grails application

Object Partners
JVM

Grails ProTip: Dynamically creating JSON in Grails 2.0 with JsonBuilder

March 22nd, 2012

How-to use the new JsonBuilder in Grails 2.0 to convert a graph of object to JSON dynamically at runtime.

Object Partners
JVM

How to Mock Final Classes in Unit Tests

March 15th, 2012

If you use Mocking framework (Mockito or EasyMocK) and you want to mock final classes, this article will provide you a simple way to actually mock them.

Neil Buesing
JVM

Using VIM as your Grails IDE Part 2

February 28th, 2012

VIM can provide some of the more advanced IDE features while still remaining lightweight. Here I discuss version control, merging and testing of a Grails application.

Object Partners
JVM

Using VIM as your Grails IDE Part 1: Navigating your project

February 21st, 2012

VIM can be used as your primary editor for Grails. Here I walk through navigation of a Grails project using various VIM plugins and scripts.

Object Partners
JVM

Quick and Easy Class and Sequence Diagrams in Eclipse

February 7th, 2012

Quick and Easy Class and Sequence Diagrams in Eclipse

Phil True
JVM

Adding a Web Module to a Gradle Project

January 31st, 2012

A blog post detailing how to add a JEE war module to an existing gradle project. Also shows how to run it with jetty via gradle.

Object Partners
JVM

Building with Gradle

January 26th, 2012

how to get started with building java projects using the gradle build system.

Object Partners
JVM

Creating a Spring @StrictDateTimeFormat Annotation

January 19th, 2012

A RegexParserDecorator to decorate any Spring Formatter to apply a regex pattern, creating a @StrictDateTimeFormat annotation as an example.

Jeff Sheets
JVM

Presentation: Grails 2.0 - what to be excited about

January 17th, 2012

Grails 2.0 is here and full of a bunch of exciting, fun stuff. Check out Sr. Consultant Zan Thrash talk about what youll see in Grails 2.0.

Object Partners
JVM

Generating Excel from Grails

January 12th, 2012

The Grails JXL Plugin can be used to generate Excel documents from a Grails application using the JXL library

Object Partners
JVM

On The Trail of a JVM Bug

December 29th, 2011

Steps taken to isolate a thread deadlock issue that leads outside the application code into the JVM and OS.

Object Partners
JVM

Grails 2.0 Has Arrived

December 16th, 2011

Latest features with the new release of Grails

Object Partners
JVM

Quick and Simple UML with UMLet

December 6th, 2011

Introduction to UMLet; a free simple tool for creating UML diagrams from the stand alone app or from Eclipse with the plugin.

Object Partners
JVM

Java Synchronization Method Performance Comparison

November 29th, 2011

Compares the performance of the various thread synchronization mechanisms provided by Java.

Object Partners
JVM

Brief Introduction to REST

November 9th, 2011

This is from a guest lecture that I delivered to a web-programming class at Bethel University this past month.

Object Partners
JVM

Eclipse Service Release Adds Support for Java7

October 6th, 2011

Just last week the Eclipse group released a service release to their Indigo version, including support for Java 7.

Object Partners
JVM

Grails: Overriding the HTTP Method

September 29th, 2011

Grails gives you the option of overriding the HTTP method via an extra parameter(_method) or a custom HTTP Header(X-HTTP-Method-Override).

Object Partners
JVM

Java v7 Released

September 20th, 2011

A quick peek at some of the new bits in the new Java version 7 from Oracle.

Object Partners
JVM

Implementing REST Authentication

June 16th, 2011

An example of implementing REST authentication by signing the URL.

Object Partners
JVM

Customizing The Grails Spring Security UI Plugin

May 24th, 2011

The Spring Security UI plugin is an extension to the core plugin. This article focuses on customizing the forgot password screens and functionality.

Object Partners
JVM

Fine-Grained Security Simplified

April 7th, 2011

A simple way to add fine-grained security to a Grails application: use annotations and a web filter.

Object Partners
JVM

Using MyBatis Annotations with Spring 3.0 and Maven

April 5th, 2011

Examples on how to use some of the MyBatis annotations and Spring.

Object Partners
JVM

GR8 in the US

February 23rd, 2011

Object Partners is proud to be the premier sponsor of this years GR8 in the US Conference. The conference, dedicated to Groovy, Grails, Griffon and other GR8 technologies is now open for registration at <a href=http://gr8conf.us>gr8conf.us</a>.

Object Partners
JVM

Hudson Forked

February 17th, 2011

Recently developers of the continuous integration tool, Hudson, have created a new project, Jenkins.

Object Partners
JVM

Start Using Eclipse with Grails Support via STS

February 15th, 2011

With the latest STS and Grails, Eclipse becomes a potential contender in creating and maintaining Grails applications.

Object Partners
JVM

Grails Testing: Domain Constraints

February 10th, 2011

Developer Testing Unit Testing Grails Domain and Command constraints

Object Partners
JVM

Using Gradle to augment your legacy Ant build

January 4th, 2011

Gradle is a powerful build tool that can be used as a replacement for Ant. This article describes the benefits of moving to Gradle and a simple way to do so.

Object Partners
JVM

Loading test BLOB data into HSQLDB with a Groovy Ant Task

December 30th, 2010

Insert BLOB Data into HSQLDB via ANT Groovy plugin for JUnit testing

Object Partners
JVM

Grails Experience :: Should we use Grails?

December 28th, 2010

Have you ever been on a grails/groovy project that failed because of * limitations/faults in the technology itself * the grails/groovy learning curve Colin Harrington, a Senior Consultant at Object Partners, responds to a common question that we hear based on his years of experience.

Object Partners
JVM

How To Write JUnit Tests

December 21st, 2010

Recently Ive been asked how do you get started writing unit tests? I had to give great thought to the question. A lot of us have been writing unit tests for a long time, most using JUnit or a similar suite, so to many of us its kind of second nature. After pondering and chatting more, heres what I came up with.

Object Partners
JVM

New Spring 3.0.5 Released (Hibernate 3.6.0 Final, too)

November 18th, 2010

Version 3.0.5 of the Spring framework and 3.6.0 of the Hibernate framework have been released

Object Partners
JVM

Grails Plumbing: Spring AOP Interceptors With Annotations

November 16th, 2010

Wiring up a Grails application to use Springs Interceptors with Annotations

Object Partners
JVM

Unit Testing your Persistence Tier code

November 9th, 2010

Writing Java JUnit unit-tests for your JPA/Hibernate persistence-tier code leveraging a memory resident database, HSQLDB.

Neil Buesing
JVM

Why Grails?

November 4th, 2010

Overview of benefits of using Grails and Groovy on web development projects.

Object Partners
JVM

Grails Plumbing: Spring AOP Interceptors

October 19th, 2010

Overview of how to use Spring AOP Interceptors and DailyRollingFileAppender in your Grails Project

Object Partners
JVM

Keep Your Code Clean

October 14th, 2010

Theres no excuse for not cleaning up when making code changes. A simple rule to follow is that there should be no compiler warnings in your code!

Object Partners
JVM

Update: Fast path switching between projects

October 12th, 2010

Yesterday I overheard a couple co-workers talking about this cool script they found for quickly switching between development projects.  Turns out they were talking about my old post so I thought I’d share the latest version of the script. Back in…

Object Partners
JVM

Embracing Mylyn

August 26th, 2010

Using the powerful task-focused interface provided in Eclipse, project and application lifecycle management can be eased.

Object Partners
JVM

Gaining Access to the Spring Context in Non Spring Managed Classes

August 23rd, 2010

There are times where it’s not practical (or possible) to wire up your entire application into the Spring framework, but you still need a Spring loaded bean in order to perform a task.  JSP tags and legacy code are two such examples.   Here is a…

Jon Baso
JVM

Integrating OpenSSO/OpenAM with Liferay Portal on Tomcat

August 16th, 2010

Integrate OpenSSO/OpenAM with Liferay Portal on Tomcat to achieve single-signon.

Steve Banks
JVM

Spring @PathVariable Head-slapper

August 12th, 2010

A simple oversight in the documentation and potentially unnecessary default in the Spring @PathVariable annotation can cause runtime trouble.

Object Partners
JVM

How Do Annotations Work?

August 6th, 2010

A quick trip through some examples of how to define, find, and ultimately use annotations to get work done on diverse classes.

Object Partners
JVM

Packaging your Java application for the Mac

August 3rd, 2010

The Mac has some nice tools to turn your jar file into a first class Mac application. This is most useful if the application has a GUI interface; Swing, SWT, etc. There are three parts to this process: Package your application as a jar file Create an…

Object Partners
JVM

Sun Java 1.6.0_21 Not Detected By Eclipse

July 30th, 2010

A quick-fix to get Eclipse running again after an automatic update makes the Sun JVM again undetectable.

Object Partners
JVM

Dojo Datagrid

July 23rd, 2010

Using the newest version of the Dojo DataGrid

Object Partners
JVM

Spring Release v3.0.3

July 9th, 2010

Spring released version 3.0.3 of the Spring Framework

Object Partners
JVM

Ten Minutes With Eclipse Helios

July 6th, 2010

On June 23rd, Eclipse launched their new release (v3.6), named Helios. Heres (good) impressions after playing with it for about ten minutes.

Object Partners
JVM

Usage Patterns for Gaelyk

June 29th, 2010

pre { border: solid 1px black; font-size: 1.3 em; color: black; margin: 10px; padding:10px; background: #CCCCCC; } Using Groovy on Google App Engine is relatively simple due to Groovy’s compatibility with Java.  However, until recently, the…

Object Partners
JVM

External Per-Context Variables in Tomcat

June 23rd, 2010

Configuring variables outside of a WAR file for use with each instance deployed.

Object Partners
JVM

Suppressing Ant cant find JAR Warnings

April 19th, 2010

Suppress cant find JAR warnings generated by javac when running in Ant.

Object Partners
JVM

Canoo Webtest - Interpreting the test results!

March 10th, 2010

How to interpret and use the test results for Canoo Webtest, particularly when tests dont pass or you dont even get the report screen.

Object Partners
JVM

Updating or Starting Spring 3.0 Project

March 1st, 2010

For those with Spring projects already in progress, as well as those starting new projects, a number of new features are available, and some changes must be made to take advantage of them.

Object Partners
JVM

Framework for a Multi-stage Spring Property Loader Extension Allowing Dynamic Updates of Properti...

February 22nd, 2010

Overview It is commonplace in enterprise applications to allow application properties to be loaded from configuration files. When leveraging Spring, this is typically achieved using a PropertyPlaceholderConfigurer instance within the application…

Object Partners
JVM

Enabling JMX monitoring of SEDA Queue Depths in Apache Camel

February 15th, 2010

Apache Camel’s SEDA (Staged Event-Driven Architecture) endpoints (http://camel.apache.org/seda.html) provide a useful and quick mechanism to implement asynchronous, event-driven processing within your applications. See http://www.eecs.harvard.edu/~mdw/proj/seda/ for the original description of the SEDA architecture. For those not very familiar with Camel, implementing a SEDA route can be as simple as adding the following to a route builder class:

Object Partners
JVM

The Groovy Spaceship Operator Explained

February 8th, 2010

A brief explanation of the Groovy spaceship operator, its usage, and the advantages of using it.

Object Partners
JVM

Immutable Data Structures in Concurrent Java Applications

February 1st, 2010

Using immutable data structures to minimize complexity and risk in concurrent applications.

Object Partners
JVM

Using JPA and JAXB Annotations in the Same Object

January 25th, 2010

Using both JPA and JAXB annotations on the same member of an object can cause runtime errors if not done correctly. Heres how to do it.

Steve McCoole
JVM

Subversion and Hudson From Scratch

January 18th, 2010

A step-by-step approach to get Hudson Continuous Integration working behind an Apache web server, building an Ant project fetched from Subversion.

Object Partners
JVM

Exactly how is your development environment configured?

January 4th, 2010

Exactly how is your development environment configured? I solved this problem with a simple script...

Object Partners
JVM

Fast path switching between projects

December 29th, 2009

Really fast and easy to try different versions of things that are wired into the command line path. For example, switching grails versions is as simple as...

Object Partners
JVM

Simplifying JPA Testing with Springs PersistenceUnitPostProcessor

December 11th, 2009

At my current client, we are writing an application that is deployed as an ear into Websphere. One of the goals of the project is to write out-of-container tests so that we dont have to build and deploy over and over again. Two of the tools we are using in this application is JPA for the ORM and Spring. Initially, we had two persistance.xml files, one for production and one for testing. Some of the differences were that the production version used a transaction type of JTA and the test version used resource local. There were a few other property differences, but otherwise they needed to be identical. At first this was ok, but as our list of classes and properties grew it became a maintenance hassle.

Object Partners
JVM

Write Readable Tests with Mockito

December 4th, 2009

A good mocking framework is a must have in any Java developers toolset. Mocking frameworks greatly reduce the amount of code needed to effectively mock dependent interfaces and/or classes. Over the past several years EasyMock has been my mocking…

David Reines
JVM

Mac OS X Development Hurdles

November 23rd, 2009

Moving to Mac OS X as a development environment and some issues or differences discovered.

Object Partners
JVM

Default settings of svn:keywords property

October 28th, 2009

Keyword expansion is not the default for files added to an SVN repository.  And it’s done on a per file basis (with CVS we could configure an entire repository to turn on keyword expansion — .)  Some svn tools and plugins allow for defaulting…

Object Partners
JVM

Delivering Business Value Through Polyglot Systems (part 4 / conclusion)

September 21st, 2009

In my previous three posts, I described my experience with maintenance, refactoring, and installation on a large project that used both Java and Groovy. In this post, I will discuss the “support nightmare” raised by Bill Burke in his blog post…

Object Partners
JVM

Delivering Business Value Through Polyglot Systems (part 3)

August 26th, 2009

In my previous two posts, I described my experience with maintenance and refactoring on a large project that used both Java and Groovy. In this post, I will discuss the installation concerns raised by Bill Burke in his blog post “Polyglot…

Object Partners
JVM

Delivering Business Value Through Polyglot Systems (part 2)

August 20th, 2009

In part 1, I described how my experiences using both Groovy and Java delivered business value to the customer by letting the project team work with code that closely reflected the domain. We found the new system didn’t result in a “maintenance…

Object Partners
JVM

Delivering Business Value Through Polyglot Systems (part 1)

August 10th, 2009

My answer to Peter Ledbrooks’s blog post “Are polyglot systems a good idea?” is “Yes!“. He wrote his post after reading “Polyglotism is the worst idea I ever heard ” by Bill Burke. I don’t know Bill Burke personally but the post has a troll-like…

Object Partners
JVM

Running and Debugging Grails Integration Tests In Eclipse

June 2nd, 2009

This is a follow on to Eclipse Setup for Grails 1.1 Development . Although not ideal Eclipse integration, by setting up a Run Configuration for your Grails project in Eclipse, you will be able to run and debug Grails integration JUnit tests within…

Torey Lomenda
JVM

Eclipse Setup for Grails 1.1 Development

May 27th, 2009

Overall I have enjoyed the development experience with Grails and I am excited about its future. I am a heavy Eclipse user so along with a number of folks in the community I have been a bit disappointed with the support in my favorite IDE. However…

Torey Lomenda
JVM

Automated Integration Testing with HttpUnit and ServletUnit

April 3rd, 2009

One frequent hole in Test Driven Development (or any other comprehensive attempt to test) in Java web applications is the presentation layer. Especially when using an MVC pattern to separate the work from the display, the trend is to do that testing…

Object Partners
JVM

Unit Testing Grails in Eclipse

February 16th, 2009

For the past several weeks, I’ve been working on a Grails app in my spare time, and I’m really excited about the future of Grails.  However, I’ve been a bit disappointed in the tooling currently available.  Myself and many of my clients use Eclipse…

David Reines
JVM

Observations on Code Coverage Tools and Unit Tests

January 15th, 2009

At my current client, there’s a drive to put more unit tests on the Java code. It’s been a long hard process as few of the developers do strict, or even just “mostly,” test-driven development. As an attempt to try and drive this home, they’ve also…

Object Partners
JVM

Equals and HashCode

January 10th, 2009

It happens far too often that developers shortcut creating and in their objects. This discussion hopes to enlighten those short-cutters, and introduce a simple solution to their problem. The use of and is assumptive of only one concern, and…

Object Partners