Detect absence of JNDI and configure accordingly.