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

 

 

Java Quartz Scheduler vs Java Timer Example

1.Introduction This example builds two java scheduler applications: one utilizes Quartz scheduler and the other uses java built-in Timer library. Quartz – an open source library, enables enterprise to schedule a job/task at a specific date and time.  It provides operations to scheduling/unscheduling jobs, starting/stopping/pausing the scheduler. JDK built-in Timer library enables an application to run the task in a ...

Read More »

Android TabLayout Example

1. Introduction In this example, we will be going through the process of creating a basic user interface using the tab layout constructs available on the Android platform. In Android, the TabLayout is a construct for better organizing a user interface. It does so by making the user interface more organized and less cluttered. This example will also explain the ...

Read More »

Spring MVC using Log4j Example

Log4j is a popular and widely-used logging framework for the Java development. It’s pretty easy to setup and use the Log4j mechanism in a Spring Mvc application. In this tutorial, I will show you how to implement the logging functionality with the Spring Mvc framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity ...

Read More »

Log4j Enable/Disable Logging Example

Let’s say developers want to disable or enable the Log4j framework by simply clicking some checkboxes. The advantage of this is that when developers use the Log4j framework in the production environment and want to enable logging at any time, they just don’t need to change the XML or the properties file from the local machine and then upload it. ...

Read More »

Log4j Email Configuration Example

It is always better to get notified about any major exceptions that occur in an application instead of manually going through huge logs to find the probable exception messages. In this tutorial, I will show you how to implement an out of box Log4j appender (called as SMTPAppender) to send email alerts. 1. Introduction Printing messages to the console is ...

Read More »

Spring Batch Job Parameters Example

In this article we shall show you how you can pass job parameters to a spring batch job. 1. Introduction A typical enterprise application requires a batch job that consists of one or more steps. Each step reads the input data, processes the input data, and writes the processed data to the configured output. In a batch job with more ...

Read More »

Log4j Rolling Daily File Example

Logging is a critical feature of any application. In this tutorial, I will show you how to implement some useful Log4j RollingFileAppender Patterns for writing the logging mechanism in Java development. 1. Introduction Printing messages to the console is an integral part of the development testing and the debugging of a Java program. If developers are working on a Server ...

Read More »

Log4j Conversion Pattern Example

Logging is a critical feature of any application. In this tutorial, I will show you how to implement some useful Log4j Conversion Patterns for writing the logging mechanism in Java development. 1. Introduction Printing messages to the console is an integral part of the development testing and the debugging of a Java program. If developers are working on a Server ...

Read More »

Log4j writing to Different Log Files Example

Logging is a critical feature of any application. In this tutorial, I will show you how to configure the Log4j to write logs to multiple files based on the category. To achieve this in our tutorial, we would be using the LevelRangeFilter. 1. Introduction Printing messages to the console is an integral part of the development testing and the debugging ...

Read More »

Log4j 2 Best Practices Example

Logging is a critical feature of any application. In this tutorial, we will cover some Log4j2 best practices that can help developers get started and improve the logging with Log4j2. 1. Introduction Printing messages to the console is an integral part of the development testing and the debugging of a Java program. If developers are working on a Server side ...

Read More »