Use a DataSource factory instead of JNDI.