Re: FW: Database Connection in Logic Beans - pooling?

2002-09-02 Thread David Graham
I overrode the ActionServlet's initOther() method and put this code in there: // this code runs when the servlet gets initialized DataSource ds = this.findDataSource("org.apache.struts.action.DATA_SOURCE"); Database.setSystemDatabase(new Database(ds)); // now anywhere in the system you can cal

FW: Database Connection in Logic Beans - pooling?

2002-09-01 Thread Steve McLeod
There's a couple of pieces missing in my understanding of this: 1. How do you get hold of the DataSource of the ActionServlet subclass? Is this what getSystemDatabase() does? If so, then how? 2. Am I right in assuming that the getSystemDatabase() method instantiates a new Database clas