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);

written by objects \\ tags: , ,


Leave a Reply

You must be logged in to post a comment.