Blog Archives
1 2 3 4 5 6 7 8 9 31

02: JDBC with MySQL, Datasource, and connection pool Tutorial

Step 1: pom.xml file with commons-dbcp2 for the connection pooling and abstraction layer for the datasource.

db.properties for connection details

Step 2: Create a new source folder “src/main/resources”.

Step 3: Define the MySQL database “learnjavadb” connection properties in a new file named “db.properties”

Read more ›



02: Kubernetes (i.e. Minikube) – deploy a node js service

This extends Install Kubernetes (i.e. minikube) on Mac. Project Structure Step 1: Create a new “project” foleder “minikube-js” under the projects folder. In that folder create minikube-js/server.js file. Step 2: Create the “ … Read more ›...



02: Simple Akka tutorial in Java with 2 Actors

This tutorial extends the previous tutorial Simple Akka tutorial in Java step by step to use multiple actors. Let’s have two different actors to handle odd and even numbers respectively. We will also print the thread names. Step 1: Actor “ConsumerOfOddNumbers.java” that runs on the “ … Read more ›...



02: Simple Akka tutorial in Scala with 2 Actors

This tutorial extends the previous tutorial Simple Akka Tutorial in Scala step by step for the Java developers, and Simple Akka tutorial in Java with 2 Actors.

Step 1: The “Consumer.scala” file that contains two actor classes “ConsumerOfOddNumbers

Read more ›



02: Simple Spring Boot Restful Web Service Tutorial

This tutorial extends Simple Spring Boot Tutorial in 8 steps. Step 1: The pom.xml file that was created in the previous Spring boot tutorial needs to be changed from “spring-boot-starter-actuator” to “spring-boot-starter-web” Step 2: Add additional logic to the “ … Read more ›...



02: Spring Cloud to register client with Eureka Discovery Server Tutorial

This extends Spring Cloud with Eureka Discovery Server Tutorial. Step 1: Go to https://start.spring.io/ to create a skeleton spring-boot application. Add Eureka Discovery Client and Server as shown below: Click on “generate” to download the “my-sample-client-project.zip” file. … Read more ›...



02: Websphere MQ Client API Tutorial – Message Receiver

Step 1: You need to have the Webspeher MQ client jar “com.ibm.mq.allclient.jar” in your project at “${basedir}/lib”. You can refer to it via Maven as a local file based repository.

Step 2: Use the “Websphere MQ API” to receive a “MQMessage” from a “MQQueue”.

Read more ›



1 2 3 4 5 6 7 8 9 31

Java Interview FAQs

800+ Java Interview Q&As

Top