posted 15 years ago
The first part obtains a DataSource instance from the JNDI and gets a connection of it.
The second part doesn't compile, but its intent is to create a DataSource instance yourself, configure it yourself and finally get a connection of it.