users@glassfish.java.net

_at_PostConstruct methods execute every time in GF3 for Servlet web services

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Jan 2010 10:04:10 PST

Using servlet-based web services on GF3, methods annotated with @PostConstruct, execute every time for every request. This does not happen in GF 2.x where they execute only once.

The problem can be easily reproduced by adding an @PostConstruct annotated method to any of the Netbeans web services basic examples. So I don't think it has to do with any special web service configuration.

JC
[Message sent by forum member 'jcferrer' (blindacrobat_at_sbcglobal.net)]

http://forums.java.net/jive/thread.jspa?messageID=381761