tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: context-param vs env-entry. Ready? Fight!
Date Fri, 31 Aug 2007 17:30:03 GMT
Sort of. I mean any java class which saves, loads, or gets data from 
somewhere and thus requires configuration at some time. Using IOC you 
can hand wave around those configuration issues and having one "smarter" 
class dependent on the servlet api which configures the rest of your 
beans is OK.

-Tim

Brian Munroe wrote:
> On 8/31/07, Tim Funk <funkman@joedog.org> wrote:
> 
>> Do you really want code that has nothing to do with the servlet api
>> dependent on ServletContext? Plugging in a new jndi lookup for testing
>> is much easier.
>>
> 
> Forgive my ignorance here, but do you mean, say, in a bean?  That
> doesn't inherit the servlet's scope?  I've never tried it because I
> always use JNDI :)
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message