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
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
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).