Home Page2019-02-28T07:29:19+00:00

Handling Binary Data in SOAP with MTOM

SOAP Services With MTOM SOAP is an XML based protocol which means that all data inside the SOAP envelope must be text based. If you want to include binary data in a SOAP message, it too must be text based. To achieve this you can convert binary data to [...]

By |June 19th, 2017|Categories: Web Services|Tags: , , , , , |

REST Endpoint Testing With MockMvc

REST Endpoint Testing With MockMvc In this post I'm going to show you how to test a Spring MVC Rest endpoint without deploying your application to a server. In the past, full integration tests were the only meaningful way to test a Spring REST endpoint. This involved spinning up [...]

By |May 25th, 2017|Categories: REST, Spring Boot, Testing|Tags: , , , , , , |

Java Concurrency – Synchronization

Java Concurrency - Synchronization In my last post we looked at running tasks across multiple threads, asynchronously using the ExecutorService. Accessing and manipulating an object from multiple threads simultaneously can pose a problem when the object in question holds state. If multiple threads attempt to modify shared state, behaviour can become [...]

By |April 12th, 2017|Categories: Core Java|Tags: , , , , |

Java Concurrency – Multi Threading with ExecutorService

Multi Threading with ExecutorService In this post we'll look how the ExeutorService can be used to run multi-threaded asynchronous tasks. We'll start by creating threads directly and then move on to explore the ExeutorService and how it can be used to simplify things. Creating Threads Directly Before the Executor [...]

By |March 28th, 2017|Categories: Core Java|Tags: , , , , |

Apache CXF – Contract First Web Services

Apache CXF - Contract First Web Services I wrote a post a few years ago detailing a step by step guide to building a contract first web service using Spring.  I recently started working with Apache CXF and thought it would be worth putting together a more up to date [...]

By |October 5th, 2016|Categories: Spring Boot, Web Services|Tags: , , , , , , |

Docker – Multi Container App

Docker - Multi Container App In my last post I used Docker to build and run a simple Spring Boot application. This post will take things a little further by introducing a second container, showing you how distinct components can be deployed in separate containers and how those containers [...]

By |August 11th, 2016|Categories: JMS, Spring Boot|Tags: , , , |