It is said that in the Spring javadoc article about DriverManagerDataSource
class, that this class is very simple and that it is recommended
to use a JNDI DataSource provided by the container. Such a
DataSource
can be exposed as aDataSource
bean in a Spring ApplicationContext viaJndiObjectFactoryBean
The question is: how do I accomplish this?
For example, if I wish to have DataSource
bean to access my custom MySQL database, what would I require then? What should I write in the context configuration, etc?