Category Archives: Uncategorized

_id and ObjectId in MongoDB

MongoDB has its own style of storing the  documents in the collection and providing the uniqueness to these documents is an important aspect of MongoDB.
So , it is very important that before we go into the higher end of Mongo we should understand what are _id and ObjectId in MongoDB.

_id and ObjectIds in MongoDB-1
MongoDB Official Logo

In relational databases like Oracle , DB2,MySQL etc whenever we insert any row into the database of our application we never care about providing the Continue reading _id and ObjectId in MongoDB

Default Methods in Java 8 Explained – Part 1 (A comic way)

Default methods in Java 8 or we can also call them defender methods is one of the new feature that you will see in Java 8.  I would rather say it is one of the most awaited feature should have been introduced in the earlier versions itself.Anyways its never been late so that it can’t be used , I think finally its a great introduction by Oracle Java Team.

Now as we know in Java (prior to 8) all the implementation classes (non abstract) of an interface have to agree the interface contract and under that contract they have to provide the concrete implementations of all the methods available in interface that they are implementing , if you missed in providing implementation for even a single method ,compiler will start complaining about it.

Now consider a scenario you want to have a method in your interface and you don’t want to Continue reading Default Methods in Java 8 Explained – Part 1 (A comic way)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Apache Log4j Logging Framework Tutorial, Loggers, Appenders,Layouts

From last few days I was thinking to write about a post on log4j framework and the problems that logo-apche-log4j-logging-frameworka developer faces during its configuration time because I also faced lot of problems when I started working on Apache log4j logging framework. In this post I am going to start from basic ,e.g what is a logging framework ? , Why it is required? How to Configure it in your application ? and most common exceptions that you will get during configuration. So, let’s start.

What is a Logging Framework ?
In simple terms logging is an activity to capture all the junk/temporary data that is generated while an application is running. Why I am saying it as junk because it is like temporary data that you will Continue reading Apache Log4j Logging Framework Tutorial, Loggers, Appenders,Layouts

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

How to Fight spams in 4 simple steps – Explained

After starting my wordpress blog ,within few days some of posts starts toping the Google chart , I was very happy by seeing that but it caused an unwanted problem for me i.e I started getting spam emails and spam comments on my posts.On an average I was getting 50-100 spams everyday and I was really pissed of these spams , so I thought instead of running away from them I have to fight with these spams.So next question is How to fight spams, In this post I am going to focus on what all measures I have taken to avoid spams and gave a rock solid answer to these spammers.

How to fight spam in 4 simple steps Continue reading How to Fight spams in 4 simple steps – Explained

Quartz Spring Integration Example

This post is in continuation of my previous post i.e Quartz Scheduler Framework and Integration with Spring – Quartz Spring Integration. If you had missed out that post , you can read it here.

In this post we are going to see how Quartz Spring Integration , how to develop quartz job , quartz trigger , quartz scheduler and their configurations.

I had already written that post on my other blog , you can read that post here.

Quartz Spring Integration

Drop me a comment in case of any issue in development of any component and integration. Continue reading Quartz Spring Integration Example

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

GIT Distributed Version Control System and How to Configure

Before we start looking into the details of “How to Install Git on Windows” , we will try to understand what exactly GIT Distributed Version Control System is , what are its advantages and then how to install it.

So, let’s start :

What is GIT ?

In simple terms, GIT is a distributed version control system that’s it. I know just putting a formal definition is not enough and is not sufficient to understand GIT Distributed Version Control System,  let’s break this term into 2 parts , Distributed and Version Control System , and we will try to understand Continue reading GIT Distributed Version Control System and How to Configure

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS