Sep 29
|
The default data store is stored as an attribute in the application context.
// Get application context ServletContext application=servlet.getServletContext(); // lookup data source DataSource datasource = (DataSource) application.getAttribute(Global.DATA_SOURCE_KEY);