How does an application that uses Spring's SimpleNamingContextBuilder
as its JNDI provider know to search its directory for resources? What links the application to the Spring naming directory? For example, how does the JndiObjectFactoryBean
bean in this earlier answer know to find resource my-db
in the Spring directory? Doesn't JndiObjectFactoryBean
require a context environment with property java.naming.factory.initial
set to some implementation of interface InitialContextFactory
? What should the value of java.naming.factory.initial
be when using SimpleNamingContextBuilder
as the JNDI provider?