Blog Archives

♥ Creating a Maven profile to compile using a different JDK version tutorial

Profiles are very handy in maven to use different JDK versions, include different files for different environments, etc. Step 1: Say you have a pom.xml file using Java 7 to compile. Step 2: Say now you want to compile using

Posted in Maven Profiles Tutorials Tagged with:

♦ 8+ JMeter performance testing interview Q&As

Performance testing is an important process of any software development. You can bring this up yourself to many open-ended questions like — Tell me about yourself? What are some of your recent accomplishments that you are proud of? Setting up…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Code Quality, JMeter, JMeter Tutorial, member-paid, Performance, Performance Testing Q&A

20+ Maven plugins listed for an enterprise Java (i.e. a JEE) project

In Maven, there are build and the reporting plugins. Build plugins will be executed during the build, and they should be configured in the “build” element. What is a “Plugin Architecture”? In this architecture, a core application defines an interface,

Posted in Maven Tutorials

Checkstyle & Maven Tutorial

Step 1: The pom.xml with the checkstyle plugin and properties. Step 2: The checkstyle files that define the rules. src/main/resources/checkstyle/myapp-checks.xml src/main/resources/checkstyle/myapp-suppressions.xml Step 3: Running via mvn command. This reports any stylying errors.

Posted in Productivity Tools Tutorial

Findbugs and Maven tutorial

Findbugs is an open source project for a static analysis of the Java bytecode to identify potential software bugs. Step 1: The pom.xml with the findbug & site reporting plugins and properties. Step 2: Exclude certain classes with an exclude

Posted in Productivity Tools Tutorial

JMeter beginner tutorial

This tutorial performance test the RESTFul web service we created ealier as part of the “RESTful Web Service Tutorial with Apache CXF, Maven, and Eclipse” with JMeter. JMeter is an opensource performance testing tool. Step 1: Download latest release version

Posted in JMeter Tutorial, Tools

JMeter for performance testing REST services with BeanShell

This post extends 8 JMeter Performance testing Interview Q&As to cover JSON HTTP post. Now a days, a single page interactive web sites are very popular, and they post JSON based data back to the server to create a new…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in JMeter, JMeter Tutorial, member-paid, Performance, Performance Testing Q&A

Maven and Cobertura Tutorial

Cobertura is a free code coverage tool, which calculates the percentage of Java code accessed by unit tests. Step 1: The pom.xml file with the relevant reporting plugins. The properties also shown to set the coverage percentage and to skip

Posted in Code Coverage, Productivity Tools Tutorial

Maven assembly & Shade plugins examples & uber jar creation

Maven assembly plugin is primarily intended to allow users to aggregate the project output along with its dependencies, modules, site documentation, and other files into a single distribution archive like zip, tar, tar.gz, war, etc. Another example where this is

Posted in Maven Assembly Tutorial

Maven assembly plugin examples

This extends the Maven assembly plugin with additional examples to create an assembly by controlling what artifacts get included in the archive. Example 1: dev-assembly.xml The datasource and properties files are packaged for DEV environment. Example 2: dev-assembly.xml Control what

Posted in Maven Assembly Tutorial

Notepad++ beginner tutorial

You can download Notepad++ from http://notepad-plus-plus.org/download. It is a very handy productivity boosting tools. Q. Why is Notepad++ is a very handy tool? A.  Notepad++ is a very handy developer tool. Here are some of the productivity benefits of Notepad++.…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Productivity Tools Tutorial, Tools

Notepad++ productivity tips with SQL trigger code example

One of the traits of good developers is that being lazy and this laziness leads to finding productive ways to perform a task. Recently, I had to create a number of triggers to a few existing tables. It is quite…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Productivity Tools Tutorial, Tools

Notepad++ to construct SQL where clause

Lets take a tutorial like scenario to demonstrate power of Notepad++ as a  developer productivity tool. Q. How will you extract rule_name values from a tabular data shown below and convert it to an SQL query as shown below as…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Productivity Tools Tutorial, Tools

Notepad++ with the power of regex for productivity tutorial

This post is based on a industrial example where you have a CSV file where you want to add quotes (i.e. “) around it. For example Convert text like: To Another reason you might want to do this in Java…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Productivity Tools Tutorial

Part 1: Creating an empty multi module maven project structure

Enterprise projects will have multi maven modules. Step 1: Create simple-app-parent is a package of type “pom” press “Y” for all the questions. Step 2: cd into your newly created root dir “simple-app-parent” Step 3: Create a child module “simple-app-service”,

Posted in Maven Tutorials

Part 2- Adding dependency jars to multi-module MVN project

This extends Part 1: Creating an empty multi module maven project structure. Dependency Management allows you to consolidate and centralize the management of dependency versions without adding dependencies which are inherited by all children. The dependencyManagement control the versions of

Posted in Maven Tutorials

Part 3- Adding plugins to multi-module MVN project to perform specific tasks

This extends Part 1: Creating an empty multi module maven project structure and Part 2- Adding dependency jars to multi-module MVN project. The “pluginManagement” defines the settings for plugins that will be inherited by modules in your build. Let’s define

Posted in Maven Tutorials

Power of Excel spreadsheet to dynamically generate SQL

When you have some data in tabular (e.g. Excel spreadsheet) format and would like to insert into a database table, you need to write an SQL insert query. Manually writing SQL query for multiple records can be cumbersome. This is…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Productivity Tools Tutorial

Power of SQL as a productivity tool

There are times where you need to generate “INSERT” SQL statements from existing data. For example, you may have a production release ready “Delete” SQL statement as shown below to remove some existing records. For this script, you need to…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Productivity Tools Tutorial, Tools

Brush-up or learn the basics that will fast-track your career

open all | close all

100+ Java Tutorials by topics

open all | close all