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



Apache ActiveMQ “Hello World” Example

In this example, we shall show you how to make use of ActiveMQ as a message broker for exchanging messages between applications connected via a network. Before starting with our example, it is expected that we have a basic understanding of JMS concepts and Java/J2EE. JMS stands for Java Messaging Service, which is a JAVA API that helps communication between ...

Read More »

How To Write Unit Test Cases in Java With JUnit

In this tutorial we shall show users how to write unit test cases in Java with JUnit. This tutorials will show the JUnit test examples Table Of Contents 1. Introduction 2. Technologies Used 3. Project Setup 4.JUnit API 4.1 Simple Example 4.2 @FixMethodOrder Example 4.3 Group Test Example 4.4 RunListener Example 4.5 Timeout Example 5. Conclusion 1. Introduction JUnit is ...

Read More »

JSF Authentication Example

In our previous example we have learned how to create a sample JSF-HelloWorld application. This article will focus on creating a simple login application using the authentication mechanism and will demonstrate the following. How can we navigate from one page to another? Sending and retrieving data to and from a managed bean and using the same in another page. Table ...

Read More »

Apache Camel Aggregator Example

1. Introduction In this article, we will see an example of Aggregator using Apache Camel. We will create an order with two different types of items and shall see how these items are processed individually to get the price of each one and calculating the total price of all items of this order by using aggregation strategy. 2. What is Aggregator ? The ...

Read More »

Java Nio Tutorial for Beginners

This article is a beginners tutorial on Java NIO (New IO). We will take a high level look at this API which provides an alternative to Java IO. The Java NIO API can be viewed here. The example code demonstrates use of the core abstractions in this topic. The example code in this article was built and run using: Java ...

Read More »

Apache Lucene Hello World Example

 1. Introduction In this example, I would like to show you how to get started with Apache Lucene and write a simple Hello World program. Apache Lucene is an open source tool that provides full text searching and indexing features. Apache Lucene site has excellent details of the features and examples. However, the examples on the site are very detailed. Here, ...

Read More »

Solving Failed to load class “org.slf4j.impl.StaticLoggerBinder” Error

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). This allows the end user to plug in the desired logging framework at deployment time. SLF4J facilitates your code to make logging calls without binding to a specific logging implementation. This comes real handy for libraries ...

Read More »

How to Use the Atlassian Cache API

Nowadays, people want fast service. If your web page takes a long time to load, chances are the user will move to another page. To help us speed things up, we will use the Atlassian Cache API. The Atlassian Cache API stores data so that future requests for that data can be served faster. In this example, the data stored ...

Read 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 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 »

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