tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yevgen Krapiva <ykrap...@gmail.com>
Subject How to disable JSR 250 annotations processor ?
Date Fri, 25 Feb 2011 21:03:50 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message