Home » Author Archives: Chandan Singh

Author Archives: Chandan Singh

Chandan Singh
Chandan holds a degree in Computer Engineering and is a passionate software programmer. He has good experience in Java/J2EE Web-Application development for Banking and E-Commerce Domains.

MongoDB Node.js Tutorial

In the past examples we studied the basics of MongoDb and how to manage and maintain the Mongo DB. In this example, we will demonstrate how we can use Node.js to communicate with the MongoDB server. Table Of Contents 1. Introduction 2. Project Set-Up 3. Implementation 3.1 Insert 3.2 Update 3.3 Read 3.4 Delete 4. Conclusion 1. Introduction Node.js is ...

Read More »

HikariCP Connection Pooling Example

In the past examples we have demonstrated what is connection pooling and what are its benefits. We have studied how we can configure a connection pool using C3P0 and DBCP libraries. Continuing our series further on connection pooling libraries, we will demonstrate how we can configure HikariCP.           1. Project Set-Up Create a simple Maven Project in ...

Read More »

Spring Session Tutorial

In this example, we shall demonstrate how we can use Spring Session to improve user experience and maintain continuity of user sessions even in case of server failures. Table Of Contents 1. Introduction 2. Project Set-Up 3. Implementation 3.1 Sticky Session 3.2 Single Sign On 4. Download the Source Code 1. Introduction Spring Session is another very important Spring project ...

Read More »

Spring Web Flow Tutorial

In of our previous examples, we have demonstrated how Spring MVC can be configured. In this example, we will demonstrate what is Spring Web-Flow and what are its benefits and how to configure it in a web-application. 1. Introduction Spring MVC is a powerful framework that allows the user to configure and manage the flow of web-application in any possible ...

Read More »

Spring Security with Spring REST Web-service

In one of the previous example, we have studied about exposing a simple REST web-service using Spring REST and also how to consume a REST web-service. In this example, we will go a step further and attempt to access a REST Web-Service which is secured by Spring Security. We shall use Spring-REST to host the REST Web-Service. So let’s start with ...

Read More »

MongoDB Create / Drop Database Example

In the previous tutorial we learned the installation process and basics of MongoDB. In this example we shall learn how to create, manage and delete Databases in MongoDB. 1. Create Database Creating a database is simple in MongoDB. We just need to select the database name using the below command : use <database_name> We use the show databases command to ...

Read More »

Spring AOP Example

In this example, we shall understand what is Aspect Oriented Programming and how Spring provides support to implement AOP. 1. Introduction to AOP When designing a module, the focus is usually to maintain high cohesion in the module. Cohesion as per Wikipedia is the degree to which elements of a module belong together. But there are certain cross-cutting concerns like ...

Read More »

C3p0 Connection Pooling Example

In the previous example, we understood the concept of connection pooling and how we can use it to improve the performance and throughput of the application. In that example, we demonstrated how we can implement connection pooling using the Apache DBCP. In this example, we shall be using the C3P0 connection library. 1. Project Set-Up Create a simple Maven Project ...

Read More »

DBCP Connection Pooling Example

We will be writing a series of examples demonstrating how to configure Connection Pooling in your Java Application using different libraries like DBCP, C3P0, HikariCP etc. In this example, we shall demonstrate how to achieve connection pooling using the Apache DBCP library. 1. Why use Connection Pooling? To present dynamic data to the users, an application typically connects to a ...

Read More »

Spring Data Couchbase Example

In this example we shall demonstrate how we can connect Spring Data with Couchbase. 1. What is CouchBase? Couchbase is a highly scalable, Document based NoSQL Database. Document based NoSQL databases work on map-like concept of KEY-VALUE pairs. The key being uniquely identifiable property like a String, path etc and the value being the Document that is to be saved. ...

Read More »