On 25/02/2011 21:03, Yevgen Krapiva wrote:
> 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.

Sorry, Tomcat provides no such mechanism. The behaviour is required by
the servlet specification.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to