What is aspect oriented programming (aop) in spring (examples) ?

Aspect Oriented programming in spring The aspect oriented programming (aop) is very important module of spring framework. As the nomenclature suggests that programming is driven from aspect. In aspect oriented programming we are concerned about the basic, independent logical unit. These logical unit (or concerns) are not part of business application. These logical unit are… Read More »

Create custom thread pool in java without executor framework (example)

Create a thread pool in java without using executor framework. We will use blocking queue to implements a thread pool. 1. What is thread pool in java? Thread pool is collection of threads, which are created to perform certain tasks. Thread creation is costly IO operation. It’s not advisable to create & destroy thread(s) every now… Read More »

Multipart file upload RESTFul web service (Spring MVC/ java/ example)

File upload is very common scenario in today’s web application. In this post, We will discuss about RESTFul web service exposing Multipart file upload resource using spring mvc. Multipart REST Service (“multipart/mixed”  mime): Spring Multipart file upload service capable of consuming different kind of files like pdf, txt, json, zip etc. In Multipart project we will have HomeController… Read More »

Impact of Inheritance on serialization example in java (Base class is serializable)

Given a base & concrete class in java. Base class is Serializable (implements Serializable interface). Concrete class is extending the base class. We have already discussed Impact of Inheritance on serialization in java, when concrete class is serializable. Example: Base class implements Serializable interface Base class, Person implements Serializable interface. Drive or concrete class Employee… Read More »

Impact of static & transient data member on serialization in java (example)

Serialization is the process of saving the objects loaded in the memory to corresponding streams. e.g Save the objects to a file system (Layman term save object to a file). Deserialization is the process of loading the saved data to corresponding objects. We have discussed about the serialization deserialization in java. Impact of Static & transient data… Read More »

Page 30 of 42« First...1020...2829303132...40...Last »