But the HttpRequestHandlerServlet knows about the ServletConfig, although it never passes it to the HttpRequestHandler target it manages. I supposed there would be a way to do it.
Do you think I...
Type: Posts; User: ferranmc; Keyword(s):
But the HttpRequestHandlerServlet knows about the ServletConfig, although it never passes it to the HttpRequestHandler target it manages. I supposed there would be a way to do it.
Do you think I...
Hello,
I need a ServletConfigAware servlet that I have already configured as a HttpRequestHandler @Controller invoked by HttpRequestHandlerServlet.
Unfortunately, my...
I used what I found here and it works. I chose the OncePerRequestFilter but I don't know if it is necessary in my case.
Similar but cleaner solution:
http://forum.springsource.org/showthread.php?63415-Access-Spring-bean-from-ServletContextListener
Hello,
I have an @Aspect with an @Autowired MessageSource. If I implement Ordered I get this exception:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean...
Maybe your AbstractFactory could implement the FactoryBean interface and create instances of MyBean itself.
Or MyBean needs some Spring dependencies you want to configure in the XML?
I think what 'objectamit' says can be easily done by adding this call to your to your contextInitialized() method:
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
That...
If I use the @Component annotation I get a BeanCurrentlyInCreationException.