[jboss-user] [JBoss Web Services] - Web Service annotated with @PostConstruct - wrong order w.r.t Listener

Alessio Soldano do-not-reply at jboss.com
Thu Jul 1 13:26:45 EDT 2010


Alessio Soldano [http://community.jboss.org/people/alessio.soldano%40jboss.com] replied to the discussion

"Web Service annotated with @PostConstruct - wrong order w.r.t Listener"

To view the discussion, visit: http://community.jboss.org/message/550654#550654

--------------------------------------------------------------
Yes, that's the reason. The endpoint is created at deployment time, before the serving servlet is actually created.
Jim, is there any explicit reference in specs about ordering of endpoint @PostConstruct invocation and the servlet lifecycle? As far as I remember, jsr109 just say that the @PostConstruct needs to be called after the endpoint is created and before any request is served.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/550654#550654]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100701/9e67f494/attachment.html 


More information about the jboss-user mailing list