Actually you can leave the JDBC connection parameters in place and they will be used if JNDI Lookup fails.