vShyam Sundar wrote:
Could any one illustrate me the difference between JNDI and Dependency Injection. What was the advantage of using Dependency Injection over JNDI.
JNDI and dependency injection are two different things. Agreed that in Java EE most of the times the injected values come from JNDI, but that's not the only place where the injected values need to come from. Dependency injection is independent of JNDI. This journal article by one of the JavaRanch Sheriffs explains dependency injection well.