Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

and many more ....

Legacy Code to Testable Code #5: Extract Class

software-development-2-logo

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing tests for legacy code, and how they make our life easier. A few years ago I got this from Erik Talboom: “A private method is a design smell”. It took me a while to fully understand it ...

Read More »

3 Simple Guidelines to Rule Development, Design and Traceability

software-development-2-logo

(Article guest authored together with John Hurlocker, Senior Middleware Consultant at Red Hat in North America) In this tips and tricks article we present some background and guidelines for the design cycle encountered when one is working with rules projects. This article is not the only standard or all encompassing source of how each and every rules and events project ...

Read More »

Hibernate application-level repeatable reads

jboss-hibernate-logo

Introduction In my previous post I described how application-level transactions offer a suitable concurrency control mechanism for long conversations. All entities are loaded within the context of a Hibernate Session, acting as a transactional write-behind cache. A Hibernate persistence context can hold one and only one reference of a given entity. The first level cache guarantees session-level repeatable reads. If ...

Read More »

Explore Git Internals with the JGit API

git-logo

Have you ever wondered how a commit and its content is stored in Git? Well, I have, and I had some spare time over the last rainy weekend, so I did a little research. Because I feel more at home with Java than with Bash, I used JGit and a couple of learning tests to explore the Git internals of ...

Read More »

Installing Drupal on FreeBSD

devops-logo

Drupal ports have been available on FreeBSD since quite a long time, and binary packages can be installed very quickly. However, manual setup is required to connect Drupal to the database and have Apache serve the Drupal website. In this post I’ll describe the setup procedure of Drupal 7 on FreeBSD 10.0. The process will not be very different if ...

Read More »

Spring Boot / Java 8 / Tomcat 8 on Openshift with DIY

apache-tomcat-logo

DIY cartridge is an experimental cartridge that provides a way to test unsupported languages on OpenShift. It provides a minimal, free-form scaffolding which leaves all details of the cartridge to the application developer. This blog post illustrates the use of Spring Boot / Java 8 / Tomcat 8 application with PostgreSQL service bound to it. Creating new application Prerequisite Before ...

Read More »

Let’s Stream a Map in Java 8 with jOOλ

jool-logo

I wanted to find an easy way to stream a Map in Java 8. Guess what? There isn’t! What I would’ve expected for convenience is the following method:                   public interface Map<K, V> { default Stream<Entry<K, V>> stream() { return entrySet().stream(); } } But there’s no such method. There are probably a ...

Read More »

Stop Claiming that you’re Using a Schemaless Database

software-development-2-logo

One of MongoDB’s arguments when evangelising MongoDB is the fact that MongoDB is a “schemaless” database: Why Schemaless? MongoDB is a JSON-style data store. The documents stored in the database can have varying sets of fields, with different types for each field.     And that’s true. But it doesn’t mean that there is no schema. There are in fact ...

Read More »

ConEmu – Windows console emulator with tabs

software-development-2-logo

After switching to Git some time ago, I started working more and more with Git Bash on Windows. Git Bash is pretty cool as it provides (apart from Git) Bash supported with basic Unix tools including curl or ssh. Git Bash in Windows has some limitation though including limited customization options and lack of good copy & paste options supported ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close