Refactor Your Way to a Dependency Injection Container

Servlet container, yes; JNDI, no. JNDI does not invert any control; it's a component registry.

Answer me this: what control exactly does a JNDI directory invert?