Home » Java » Enterprise Java (page 5)

Enterprise Java

Introduction to Test Doubles

java-interview-questions-answers

When you are writing unit test you are faced with many kinds of collaborators and they all have very specific behaviours, knowing which test double you have to use in the right time can make your life easier. Dummy The first one is the Dummy Object, it’s the simplest one, a Dummy is just an object that you pass to ...

Read More »

Thoughts on Quarkus

java-interview-questions-answers

Quarkus, the new “supersonic, subatomic” Java framework is currently getting a lot of attention. The ideas behind this build and runtime tool are indeed more than interesting for the future of enterprise Java. What are the benefits and shortcomings of using Quarkus? Getting rid of dynamics Quarkus takes the reasoning that most of the dynamics of an enterprise Java runtime ...

Read More »

More about Spring Cache Performance

spring-interview-questions-answers

This is a follow up to our last post about Spring’s cache abstraction. As engineers, you gain valuable experience by understanding the internals of some of the tools that you use. Understanding the behaviour of tools helps you become more mature when making design choices.  In this post, we describe a benchmarking experiment and the results which will help you ...

Read More »

Spring Boot – How to skip cache thyemeleaf template, js, css etc to bypass restarting the server everytime

spring-interview-questions-answers

The default template resolver registered by Spring Boot autoconfiguration for ThyemeLeaf is classpath based, meaning that it loads the templates and other static resources from the compiled resources i.e, /target/classes/**. To load the changes to the resources (HTML, js, CSS, etc), we can Restart the application every time- which is of course not a good idea!Recompile the resources using CTRL+F9 ...

Read More »

Hot-deploying Java Enterprise with WAD & Docker

I’ve recorded a video how to minimize the development turnaround times with Watch and Deploy (WAD) by Adam Bien and Docker containers. The WAD tool watches for file changes and will re-build and re-deploy our applications to an auto-deployment directory. We’ll see how that approach can be integrated into containers that are created by the same Docker images that run ...

Read More »

Build Spring Microservices and Dockerize Them for Production

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. In this post, you’ll learn about microservices architecture and how to implement it using Spring Boot. After creating some projects with the technique, you will deploy the ...

Read More »

What’s new in CUBA 7

java-interview-questions-answers

Three years ago we announced the second publicly available major version of the framework. CUBA 6 was the game changing version – the licensing was turned from proprietary to Apache 2.0. Those days we couldn’t even guess where it was going to bring the framework in long term. CUBA community started to grow exponentially, so we have learned a lot of possible ...

Read More »

Building Java 6-8 Libraries for JPMS in Gradle

Find out how to use Gradle to build Java 6-8 libraries that support JPMS (Java Platform Module System) by providing Java 9 module-info.class. Introduction If you need introduction to JPMS itself, check out this nice overview. This post is primarily targeted at Java library maintainers. Any such maintainer has to make a choice of which JDK to target: Targeting the ...

Read More »