You can access the pool this way:
GenericDataSource ds = (GenericDataSource)
servlet.findDataSource(null);
which I clipped from a working Action.perform method.
-Ted.
*********** REPLY SEPARATOR ***********
On 1/23/2001 at 10:04 AM Lind Jürgen wrote:
Hi there,
I'm currently trying to use the connection pool that comes with
Struts but I have a problem with the <data-sources> spec in the
Struts config file. The Bean simply doesn't show up in the
servlet context (neither the default value nor my own key). When
establishing the the connection pool by hand everything works fine.
But when I try to access it in my initialization servelt (which is
a subclass of the ActionServelt) via the config spec it don't.
Any ideas what I may be missing?
Regards
Jürgen
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/