What Is Garbage Collection Log? How To Enable & Analyze?

Objects are created in the memory to service incoming requests. Once requests are serviced, newly created objects will become useless (i.e. garbage). This garbage must be evicted from the memory so that there is enough room created in the memory to service the new incoming requests. If there isn’t sufficient memory, the application can experience poor response times, OutOfMemoryError, and fatal crashes.

How to Avoid Liferay DXP Upgrading Pitfalls?

Timely upgrades can be proved a strategic move towards lifting the operational excellence to the next level. Experienced management individuals know very well that how the essential pieces of functionalities can greatly improve performance of process along with addressing the security challenges. Hence, they favor the technology upgrades anticipating reasonable amount of Return on Investment (ROI).

As Liferay DXP is a revolutionary version of Liferay enterprise portal launched in 2016, lot many organizations would rather opt for upgrading to Liferay DXP.

WebDAO - Java DAO based framework using JPA and Persistence Servlet

Java Persistence Architecture (JPA) is generally used in Java EE applications but can also be used directly in a Java SE program, see this article setting up JPA in a Java SE environment. However, you can get added advantages of running JPA in a web server environment and have your Java SE client programs access that, advantages such as:

  • Better use of JPA connection pool and cache as these are shared amongst the clients
  • Smaller client code without the need for full JPA and JPA implementation libraries
  • Better security as clients don’t need to hold database login information

The problem is how to provide the access and still have pretty much the full functionality that JPA provides, this is where WebDAO comes in.

Broken Link Checker For A Website Using Java

Broken Link Checker For A Website Using Java explains about how to identify the broken links and images in a website using Java and sitemap.xml.

Broken links and images in yous website reduce your SEO rank. so you need to check the broken links frequently and rectify the errors in order to boost your SEO rank

Below java example, I am showing how to find the broken links and images by reading the sitemap.xml.

Create Wind Chart Using JFreeChart

Create Wind Chart Using JFreeChart explains about creating a simple wind chart using JFreechart API

How To Create Wind Chart Using JFreeChart library?

JFreeChart is a free and open source java chart library used for creating professional quality charts. JFreeChart is purely written in java language, we can very easily incorporate JFreeChart in our java standalone and web applications.

Create Bubble Chart Using JFreeChart

Create Bubble Chart Using JFreeChart explains about creating a simple bubble chart using JFreechart API

A bubble chart or bubble graph is a type of chart that displays three dimensions of data. Each entity with its triplet (v1, v2, v3) of associated data is plotted as a disk that expresses two of the vi values through the disk's xy location and the third through its size. Bubble charts can facilitate the understanding of social, economical, medical, and other scientific relationships.

Reference -> http://en.wikipedia.org/wiki/Bubble_chart

How To Create Bubble Chart Using JFreeChart library?

Create Polar Chart Using JFreeChart

Create Polar Chart Using JFreeChart explains about creating a simple polar chart using JFreechart API

A polar chart or polar graph is a circular graph on which data points are displayed using the angle, and the distance from the center point. The X axis is located on the boundaries of the circle and the Y axis connects the center of the circle with the X axis.

Reference -> https://msdn.microsoft.com/en-us/library/dd456623%28v=vs.140%29.aspx

How To Create Polar Chart Using JFreeChart library?

Java Batch Update Example With SQL Statement & PreparedStatement

In this example, we are showing how to use Java Batch Update Example With SQL Statement & PreparedStatement

In batch update, update happens on the database as batches, which will increase the processing speed and performance. We can use batch updates for both JDBC Statement & PreparedStatement. You can see the JDBC examples for both Statement & PreparedStatement below.

In this tutorial, we are using H2 database and inserting some data using Java Batch Update