Home » Author Archives: Ashraf Sarhan

Author Archives: Ashraf Sarhan

Ashraf Sarhan
Ashraf Sarhan is a passionate software engineer, an open source enthusiast, has a Bsc. degree in Computer and Information Systems from Alexandria University. He is experienced in building large, scalable and distributed enterprise applications/service in multiple domains. He also has a keen interest in JavaEE, SOA, Agile and Big Data technologies.

Quartz Spring Batch Example

Through this article, we are going to show you how to run Spring Batch using Quartz. Spring Batch and Quartz have different goals. Spring Batch provides functionality for processing large volumes of data and Quartz provides functionality for scheduling tasks. So Quartz could complement Spring Batch, a common combination would be to use Quartz as a trigger for a Spring Batch ...

Read More »

Grails REST Example

In this example we shall show you how to create RESTful APIs using Grails. Exposing your application functionality to other applications is always achieved using web services. Grails provides several features that make implementing a RESTful web service in Grails easy using a RESTful resource. Originally, web services grew in popularity as a means for system integration. But with the recent popularity ...

Read More »

Spring Batch Multithreading Example

Through this article, we are going to show you Spring batch multithreading feature. In an enterprise, when data gets big with more customers, transactions and site hits. Your batch jobs need to be able to keep up. Spring Batch was designed from the ground up to be highly scalable, to fit the needs of both small batch jobs and large ...

Read More »

Spring Batch Exception Handling Example

Through this article, we are going to show you Spring batch exception handling, No job is perfect! Errors happen. You may receive bad data. You may forget one null check that causes a NullPointerException at the worst of times. How you handle errors using Spring Batch is our topic today. There are many scenarios where exceptions encountered while processing should not result ...

Read More »

Jfree Candlestick Chart Example

Through this article, we are going to show you how to create a stock Candlestick chart using JFreeChart, JFreeChart is a free open source Java library for generating charts, it includes a wide range of charts such as pie charts, bar charts, line charts, scatter plots, time series charts (including moving averages, high-low-open-close charts and candlestick plots), Gantt charts, meter ...

Read More »

Spring Batch ETL Job Example

Through this article, we are going to demonstrate an ETL use case leveraging the advantages of Spring Batch, A typical batch program generally reads a large number of records from a database, file, or queue, processes the data in some fashion, and then writes back data in a modified form. The main advantage of batch applications is that they do ...

Read More »

Java Swing Timer Example

In this example we are going to demonstrate Java Swing Timer, A swing timer fires one or more ActionEvent at specified intervals. Swing timers are recommended than the general-purpose timers for GUI-related tasks for the following advantages: All swing timers share the same the preexisting timer thread which created by the first Timer object that executes. The GUI-related task automatically executes on the ...

Read More »

Java Swing MVC Example

In this example we are going to demonstrate Java Swing MVC, The MVC pattern is a model of how a user interface can be structured. Therefore it defines the following 3 elements: Model that represents the data for the application. View that is the visual representation of that data. Controller that takes user input on the view and translates that ...

Read More »

Java JTable Example

In this example we are going to demonstrate how to use Java Swing JTable, JTable is a Swing component with which we can display tables of data, optionally allowing the user to edit the data, JTable relies on a separate TableModel object to hold and represent the data it displays. This article shows how to work with JTable using a simple example where ...

Read More »

Java JList Example

In this example we are going to demonstrate how to use Java Swing JList, JList is a Swing component with which we can display a list of elements. This component also allows the user to select one or more elements visually. This article shows how to work with JList features using a simple example where we build a GUI with a JList to ...

Read More »