Currently browsing

May 2012

Protected: my benefit

This post is password protected. To view it please enter your password below:

Spring transaction management part 2

Programmatic vs. Declarative Spring supports two types of transaction management: Programmatic transaction management: This means that you have manage the transaction with the …

What is fail safe in java

Iterator are fail safe while Enumeration is not Iterator is fail-safe, because it won’t allow you to change the Map while doing …

Singleton using Volatile + synchronization

public class Singleton{ private static volatile Singleton _instance; public static Singleton getInstance(){ if(_instance == null){ synchronized(Singleton.class){ if(_instance == null) _instance = new …

Constructor Injection vs. Setter Injection

  There seems to be two camps in dependency-injection: (1) The constructor-injection camp and (2) the setter-injection camp. Historically the setter-injection camp come …

Good tutorial sites

http://www.tutorialspoint.com/spring/index.htm http://www.vaannila.com/ http://www.mkyong.com/ http://javabrains.koushik.org/ http://viralpatel.net/blogs/      

spring bean scopes

4.4 Bean scopes When you create a bean definition what you are actually creating is a recipe for creating actual instances of the class defined …

spring bean scopes

Scope Description singleton Scopes a single bean definition to a single object instance per Spring IoC container. prototype Scopes a single bean …