Hi. I have a problem deploying Spring based application to Tomcat 6.0.26 / 7.0.0. Some of my beans have @PostConstruct annotated methods. Like:
@PostConstruct public void init() { ... } The problem is that these methods called twice - first time by Tomcat annotation processor, second time - by Spring. Is it possible to turn off this behavior in Tomcat as I do not really want to rewrite the application to use xml configuration metadata. I've written in the topic - JSR 250, but to be honest, I didn't test it with the other annotations from that JSR. Thanks.