On 12/26/05, Legolas Woodland <[EMAIL PROTECTED]> wrote:
>
> Hi
> thank you for reading my post.
> we can define data-source inside Struts-config.xml
> also it is possible to define a data-source in tomcat admin page.
> no my question is :
> what is differences between them , are they the same ?
> Which requirement each of this data-source has ?


>From the simplest possible perspective, one could say that the two data
sources are pretty much equivalent ... they both provide you with a
connection pool for sharing a small number of JDBC connections (to the same
underlying database) across all the incoming requests of your application,
without requiring you to allocate a request per user, even when that user
does not have an active request.

In terms of recommended usage, though, you are strongly encouraged *not* to
use the Struts version ... use the connection pool provided by your servlet
container instead.  Struts 1.0 included the data source implementation
because, at the time, most servlet containers had no such support.  Now that
they all do, the Struts data source support was deprecated in 1.1, and
removed in 1.2.

Craig


Thank you
>
>

Reply via email to