You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Johan Wasserman <Jo...@mgxgroup.com> on 2003/03/24 14:00:30 UTC

[newbie] Finding datasource from pool in struts-config

Hi,
How do you connect to a specific datasource pool (as configured in
strusts-config).
 
I have two pools specified;
key="logindb"
key="userdb"
 
ActionServlet.findDataSource is depreciated in rc 1.3
 
Thanks in advance.
Johan Wasserman

Re: [newbie] Finding datasource from pool in struts-config

Posted by Stephen Smithstone <sk...@lchost.co.uk>.
Action.getDataSource( httpSerlvetRequestObject , "logindb" );

or

Action.getDataSource( httpServletRequest , "userdb" );

that how i do it in rc1


On Monday 24 March 2003 1:00 pm, Johan Wasserman wrote:
> Hi,
> How do you connect to a specific datasource pool (as configured in
> strusts-config).
>
> I have two pools specified;
> key="logindb"
> key="userdb"
>
> ActionServlet.findDataSource is depreciated in rc 1.3
>
> Thanks in advance.
> Johan Wasserman


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org