Home » Java » Enterprise Java

Enterprise Java

Micronaut for Java EE/Jakarta EE Developers

java-interview-questions-answers

There is a new microservices framework in town called Micronaut.  In this post, I’ll discuss how I’ve ventured into working with the Micronaut framework from a Java EE/Jakarta EE perspective.  I am a Java EE developer, so developing microservices using solutions such as Eclipse MicroProfile are closer to my line of expertise, but Micronaut caught my attention since it offers ...

Read More »

ActiveMQ Performance Testing

java-interview-questions-answers

We use ActiveMQ as our messaging layer – sending large volumes of messages with a need for low-latency. Generally it works fine, however in some situations we’ve seen performance problems. After spending too much time testing our infrastructure I think I’ve learned something interesting about ActiveMQ: it can be really quite slow. Although in general messages travel over ActiveMQ without ...

Read More »

Ajax File Upload with Servlet and Bootstrap

java-interview-questions-answers

Introduction In this tutorial, we will check how Ajax file upload works with Servlets. Also we will decorate our form with Bootstrap and ajaxify file upload through jQuery Ajax. Implementation The basic servlet implementation is the same. So the first thing we need to do is update our web.xml file and specify servlets for our application. web.xml <?xml version="1.0" encoding="UTF-8"?> ...

Read More »

Containerising a Spring Data Cassandra application

I’m continuing my journey of learning Docker. I am still keeping it simple at this point. This time around, I am going to tackle converting a Spring and Cassandra application to use containers instead of running locally on the host machine. More precisely, using Spring Data Cassandra to sort out the application. I wish I looked at doing this change ...

Read More »

TIP: Activate via URL and Send Arguments

spring-interview-questions-answers

The most secure password in the world is the one that doesn’t exist. You remove the user from the equation with a completely random key. To be fair this has some drawbacks and a password still exists somewhere (in your phone/email) but generally this works rather well…​ The trick is simple, if we want to authenticate a user we can ...

Read More »

Spock 1.2 – hassle-free Spring beans mocking in integration tests

spring-interview-questions-answers

Discover how to automatically inject Spock’s mocks and spies into the Spring context using Spock 1.2. Stubs/mocks/spies in Spock (and their life cycle) have been always tightly coupled with the Spock Specification class. It was only possible to create them in a test class. Therefore, using shared, predefined mocks (in both unit and integration tests) was problematic. The situation was ...

Read More »

Knative Serving – Service to Service call

spring-interview-questions-answers

In a previous post I had covered using Knative’s Serving feature to run a sample Java Application. This post will be go into the steps to deploy two applications, with one application calling the other. Details of the Sample The entire sample is available at my github repository – https://github.com/bijukunjummen/sleuth-webflux-sample. The applications are Spring Boot based. The backend application exposes ...

Read More »

Spring Data Pivotal Gemfire Tutorial

spring-interview-questions-answers

1. Spring Data Pivotal Gemfire – Introduction In this post, we feature a comprehensive Tutorial on Spring Data Pivotal Gemfire. Pivotal Gemfire is an in-memory data grid solution powered by Apache Geode. The applications built with Pivotal Gemfire allow you to scale your system easily across distributed server nodes. Pivotal Gemfire ensures data consistency irrespective of the distribution architecture. It ...

Read More »