> -----Original Message-----
> From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 19, 2004 6:54 PM
> To: Struts Users Mailing List; Asif Rahman
> Subject: Re: Datasource problem again..
> 
> 
> Yes, it helps and I know I can get it done if I set the context
> element in server.xml,
> but if I set the datasource in server.xml, do I need to set the
> <datasource> in struts-config.xml again??
> 
> If I am right, I think if datasource is setup in server.xml, it has
> the scope of entire Tomcat, that means all webapps can use that
> datasource. Also it can be retrieved by JNDI.

Nope.. not right... read the tomcat documentation here:
http://jakarta.apache.org/tomcat/index.html
You will find that the data source can be scoped to your application, or to the server.

> 
> If the datasource is setup in struts-config.xml, the scope becomes
> struts only and is specific to only one webapp, and it can't be
> retrieved by JNDI.
> 
> So I can setup datasource in both ways, setup in server.xml has much
> more flexibilty and benifit from JNDI, why do I need to setup in
> struts-config.xml??

rtfm.

> 
> once again, thanks, ^^
> 
> Regards
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to