poorvika chanda wrote:when the objects are required to access from other JVM also it is preferred to bind them via JNDI.Otherwise we can use hashmap objects in application context .am I correct?
The statement that JNDI is similar to HashMap is a overly simplified one, to let beginners get an idea of how JNDI bindings work. However, JNDI APIs are much more than just a Map key value pair. Irrespective of whether your client is in the same JVM or a remote JVM, using JNDI wherever it's applicable (like
EJB bindings and such) is the right thing to do.