What's New Here?Subscribe to RSS feed

Spring – Adding AOP support
I heard a story about one senior (and quite highly paid) softwaree engineer. He was given task to log every method in every controller in project he was working on. Engineer rewrote ...

Spring – Adding Spring MVC – part 2
In the previous part we’ve implemented controllers for managers and employees. Now that we know our way around, we’ll do little (but just little) more complicated stuff – controllers ...

Spring – Adding Spring MVC – part 1
Welcome to the fourth part of this tutorial. In this part, we will write controllers and views using Spring MVC and think about our REST model. First thing that we must do, is make ...

Spring – DAO and Service layer
Welcome to the third part of Spring tutorial. In this part, we will continue in writing our Timesheet application and this time we’ll implement DAO layer, business services and write ...

Spring – Persistence layer – writing entities and configuring Hibernate
Welcome to the second part of this tutorial. Don’t freak out when you see how long this article is – I promise you it’s mostly easy POJOs and some generated code. Before we start, ...

Spring – Designing the domain model and the service layer
We are going to build application for timesheet management. So let’s think about some uses cases and entities first. Let me write them in the few bullets:Task is assigned to employee ...

Using PowerMock to Mock Constructors
In my opinion, one of the main benefits of dependency injection is that you can inject mock and/or stub objects into your code in order to improve testability, increase test coverage ...

Why IDEs are Wrong for Embedded Developers
I’ll admit there was a time when I developed code using Integrated Development Environments (IDEs). They make it very simple to jump in and start working on a new project or coding ...

Camel: Build a message based application
This is a long article that contains three separate topics:Getting started with Apache Camel with Java Improving startup of routes with a CamelRunner Building message based application ...

Configure timeout for CDI conversations
CDI conversation scope is a nice feature when developing JSF applications. Imagine you have large data tables which take a long time to be loaded. You normally don’t want to place ...



