Home » Java


OpenJDK on GitHub

Project Skara was created “to … investigate alternative SCM and code review options for the JDK source code, including options based upon Git rather than Mercurial, and including options hosted by third parties.” The OpenJDK skara-dev mailing list included a post from Robin Westberg last week that announced, “We have added some additional read-only mirrors of a few different OpenJDK ...

Read More »

Load Testing Web Apps Using Apache JMeter

Apache JMeter is an excellent tool for simulating user load on a web application in order to test performance. You can easily build a test plan by specifying the number of users and the interval between requests, and JMeter will then spawn a thread per user and hit your webapp. At the end of the test, you will get a ...

Read More »

Integrating Amazon Cognito With Single Page Application (Vue.js)


In this article, we will look at authenticating Single page application (built using Vue.js) with Amazon Cognito using OAuth protocol. In our previous article we integrated a server side application with Amazon Cognito. Scaffolding a Single Page Application We will use vue-cli to create an empty Vuejs application. Vue CLI can be installed by following the instructions here. Let’s create ...

Read More »

Identifiers In Hibernate

Introduction: Identifiers in Hibernate model the primary key attribute of an entity. It helps us to uniquely identify a JPA entity. Every entity must define an identifier. Also, it can be either simple or composite. We can define a Hibernate identifier in several ways. In this tutorial, we’ll learn how to do so. Simple (Single-Valued) Identifier: If we have a ...

Read More »

Selenium alternatives everyone is talking about – Choose wisely!

What is Selenium? Selenium is a suite of web browser automation tools to automate browsers across a range of platforms. Even though it’s capable of much more, Selenium tools are used to automate web apps for testing reasons. Jason Huggins created Selenium in 2004 as an internal tool at ThoughtWorks, and for the past several decades, selenium has been a ...

Read More »

How to create a QR Code SVG using Zxing and JFreeSVG in Java?

In this article, we will look at how to use the Zxing QR code generation library and JFreeSVG library to create a QR Code SVG image in Java. QR Code Generation The below code creates a java.awt.image.BufferedImage object representing QR Code using Zxing library: 1 public static BufferedImage getQRCode(String targetUrl, int width,     int height) {     try {         Hashtable<EncodeHintType, Object> hintMap ...

Read More »

Locating Elements by TagName In Selenium

Selenium locators are your key when dealing with locating elements on a web page. From the list of locators like ID, Name, Class, Tagname, XPath, CSS selector etc, one can choose any of these as per needs and locate the web element on a web page. Since ID’s, name, XPath or CSS selectors are more frequently used as compared to ...

Read More »

How to Use Nutch From Java, Not From the Command Line

Apache Nutch is an open source framework written in Java. Its purpose is to help us crawl a set of websites (or the entire Internet), fetch the content, and prepare it for indexing by, say, Solr. A pretty useful framework if you ask me, however it is designed to be used onlymostly from the command line. You download the archive, ...

Read More »

Integrate Spring Boot Application with Amazon Cognito


In this article, we will show how to use Amazon Cognito service for authentication users in a Spring Boot application using the OAuth 2.0 client library introduced in Spring Security 5.0. What is AWS Cognito? Amazon Cognito is service offered by AWS which provides user management services like sign up and sign in, in addition to providing support for granting ...

Read More »