Re: Getting DataSource from non-Struts class

2004-10-20 Thread Sean Schofield
nPool pool = (ConnectionPool) > > getServletContext().getAttribute("pool"); > > > > without needing to gain access to a servlet instance itself. > > > > Craig McClanahan > > > > > > > > > > Matt Hughes <[EMAIL PROTECTED

Re: Getting DataSource from non-Struts class

2004-10-20 Thread Craig McClanahan
gt; Craig McClanahan > > > > > Matt Hughes <[EMAIL PROTECTED]> > > 10/20/2004 01:28 PM > > Please respond to > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > To "'Struts Users Mailing List'" &l

Re: Getting DataSource from non-Struts class

2004-10-20 Thread DGraham
es <[EMAIL PROTECTED]> 10/20/2004 01:28 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc Subject Getting DataSource from non-Struts class Hi, I am developi

Getting DataSource from non-Struts class

2004-10-20 Thread Matt Hughes
Hi, I am developing a web service for my application and am putting the class in the same web context as the rest of my struts application. However, I want to be able to get a DataSource object from within this class. The only thing I have to connect the two is a ServletContext object. How c