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 ....

 

 

Jdbc Named Parameters Example with Spring NamedParameterJdbcTemplate

In this example we will present the usage of Spring NamedParameterJdbcTemplate. 1. Introduction JDBC in general, acts as a communication layer between client applications and various databases hence relevant how we can utilise it. An introduction about plain JDBC is already available under the following link https://examples.javacodegeeks.com/enterprise-java/servlet/jdbc-servlet-example/#introduction. It is best reading that post as well to have a broader understanding of the topic. Table Of ...

Read More »

JSF Actionlistener Example

JSF Event and Listener model are based on JavaBeans specification. In this example, we will learn how to setup jsf actionlistener with eclipse and tomcat. We will discuss the tools used and steps required to configure the application. 1. Introduction Action listeners are provided to make it easier to handle action events. Java server faces already provides some event handling. For ...

Read More »

JUnit Test Case Example for Web Application

In this tutorial, we shall show users the usage of JUnit Example Web Application. We will see how we can test our web applications and what are the technologies that we need to work with. Table Of Contents 1. Introduction 2. Technology Stack 3. What is JUnit? 4. Ways to test Web Applications 5. JWebUnit Introduction 6. Project Setup 6.1 ...

Read More »

Spring Boot Integration ActiveMQ Example

1. Introduction In this article we will be discussing the integration of Spring Boot with ActiveMQ. We will be using ActiveMQ as a message broker and create a sample application with JMS Queue and channel adapters integrated with Spring Boot to implement asynchronous messaging service. Before we get started I would like to go over some of the basic components as below. 1.1 ...

Read More »

Drools Backward Chaining Example

In this article, we will see a little introduction and example of what is backward chaining and how to implemente it with jboss drools. This example uses the following technologies and frameworks: Maven 3.3.9 Jboss Studio 10.3 Drools Engine 7.0  JDK 1.8.0_71 1. Introduction Backward chaining, is a concept that allows in a graph structure(derivation tree) to get through each ...

Read More »

Slf4j Spring Boot Example

In this example, we are going to learn how to use SLF4J in Spring projects with an example of Spring Boot application. 1. Introduction The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. java.util.logging, logback, log4j) allowing the end user to plug in the desired logging framework at deployment time. ...

Read More »

JSF Example with Eclipse and Tomcat

In this example, we will learn how to configure a JSF example with eclipse and tomcat. We will discuss the tools used and steps required to configure your first JSF enabled sample application. 1. Introduction JSF is an MVC framework that eases the user interfaces for server based applications by reusable UI components. It facilitates Web application development by: Providing ...

Read More »

Get Xpath From Html Example

In this example we will learn how to find the XPath of a given element in HTML. We will try to use different tools to achieve this. 1. Introduction XPath is a W3C recommendation. It can be used to navigate through elements and attributes in an XML document. It is a syntax for defining parts of an XML document. It ...

Read More »

Java XPath Performance DOM vs SAX Example

1. Introduction This article compares the performance of the Java DOM parser distributed with Java and a SAX parser distributed with the Home Edition of Saxon for evaluating various XPath expressions. Typically DOM parsers can evaluate XPath expressions faster than SAX parsers since DOM parsers construct and retain the DOM document in memory when parsing XML data. SAX parsers, on ...

Read More »

Slf4j Format String Example

In this example, we are going to see how String log messages can be constructed in SLF4J with parameter substitution. 1. Introduction SLF4J is a facade or an abstraction layer over various logging frameworks. Also known as Simple logging Facade for Java is not actually a logging implementation, instead, it’s an abstraction layer. It allows you to use any logging library ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns