Learning Docker - From a single image to multinode swarm
Docker offers a great tutorial to start learning Docker which drives you through creating your web app first image to deploying the web app to a multinode swarm. I followed their tutorial and took some notes, and did a little twist by using a local registry instead of Docker Hub.... View entire postAutomatic save of managed JPA entities outside of transaction
Repositories and transactions in Spring go hand in hand. All database access in Spring should be run inside a transaction, and you typically have @Transactional somewhere to enforce this. However, this is not always necessary. For example, when using Spring Data your repositories use SimpleJPARepository for CRUD functionality. The SimpleJPARepository... View entire postCreating an aggregated SonarQube report for multiple Maven projects
SonarQube integrates pretty well with Maven artifacts and we use our Jenkins build jobs to send Sonar reports to the SonarQube server. SonarQube neatly creates a project for each Maven artifact out of the box. In my current project, we use SonarQube dashboards on a large screen which we go... View entire postEffective Java Summary
Here is a collection of short summaries of Joshua Blochs great book Effective Java for easy future reference. Effective Java - Creating and Destroying Objects Effective Java - Methods Common to All Objects Effective Java - Classes and Interfaces Effective Java - Generics Effective Java - Enums and Annotations Effective... View entire postEffective Java - Serialization
Serialization (Ch 11) This is a short summary of Joshua Blochs book Effective Java chapter 11. I have only included items that I find relevant. Be careful when implementing Serializable (item 74) Costs of implementing Serializable: It decreases the flexibility to change a class’s implementation once it has been released,... View entire post
Older
Newer