This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Ok I've extended the ActionServlet for a web app so I could initialize values in the servletContext from the database. How can I access the datasources that are set up in the struts-config? I've found a method which seems to be depracated (and didn't work): getDataSource(String name); and then I found a member called dataSources which is a "fastHashMap" And I'm not quite sure how to get the dataSource from it. I'm only using one data source so its not "keyed".