I'm not sure myself how early the JNDI binding needs to occur.