Add a thread context setup and JNDI lookup to the batch environment.
Merge pull request #2 from jamezp/spi-updates

Add a thread context setup and JNDI lookup to the batch environment.