Yes, to me too, getting datasource and then connection and passing this
connection object to the service layer does not seem to be a good pattern. I
said, by storing the datasource and servletcontext statically in the service
layer may make life easier.
I want to know various opinions about this topic. Thanks.

On 9/23/05, Lixin Chu <[EMAIL PROTECTED]> wrote:
>
> i think if you use Spring Framework or something similar, you might not
> > need to do this by yourself.
>
>  action class accessing DB does not seem to be a good pattern.
>
>
>

Reply via email to