tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: How to disable JSR 250 annotations processor ?
Date Fri, 25 Feb 2011 21:12:10 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message