Re: [jug-discussion] grab a Spring configured bean - part Deux

2004-09-24 Thread Nicholas Lesiecki
a ds bean... can Spring just do MyServletFilter.setDataSource(myDataSourceBean) at startup? Unless Spring instantiates the bean, the answer is no. You can ask spring to configure a bean programmatically: http://opensource.atlassian.com/projects/spring/browse/SPR-266 relevant bit: I've just

RE: [jug-discussion] grab a Spring configured bean - part Deux

2004-09-24 Thread Tim Colson
a ds bean... can Spring just do MyServletFilter.setDataSource(myDataSourceBean) at startup? Nick said: Unless Spring instantiates the bean, the answer is no. You can ask spring to configure a bean programmatically: I'm not so sure that's the case for static stuff. In fact, I kind of

RE: [jug-discussion] grab a Spring configured bean - part Deux

2004-09-23 Thread Tim Colson
Hey gang - I managed to hack the Filter to get a ServletContext and then the Spring WebApplicationContext. Thanks to all for the many helpful replies. Nick wrote: Cast the request to an http servlet request. That should have access to the session, which has access to the context.(I think).