Re: Storing DataSource and ServletContext in the service layer

2005-09-23 Thread Craig McClanahan
On 9/23/05, emre akbas <[EMAIL PROTECTED]> wrote: > > 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

Re: Storing DataSource and ServletContext in the service layer

2005-09-23 Thread emre akbas
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 to

Re: Storing DataSource and ServletContext in the service layer

2005-09-23 Thread Lixin Chu
> > 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.