Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2268

Implement @PostConstruct and @Predestroy annotations support for POJO based endpoints (JSR 109 conformance)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jbossws-native-3.0.5
    • jbossws-native-3.0.1, jbossws-native-3.0.2, jbossws-native-3.0.3, jbossws-native-3.0.4
    • jbossws-native
    • None
    • Hide

      It is possible to deploy a listener in an application's web.xml file to run code at startup and shutdown of the web application. this approximates to startup and shutdown of the application's web services.

      Show
      It is possible to deploy a listener in an application's web.xml file to run code at startup and shutdown of the web application. this approximates to startup and shutdown of the application's web services.

    Description

      When JBossWS starts a JaxWS web service for a POJO annotated with @WebService it does not invoke the method tagged with @PostConstruct. SImilarly, when it shuts down the JaxWS web service it does not invoke the method tagged with @PreDestroy. These actions are required by JSR109 v1.2 (section 5.3.2.4) and this is noted as being the appropriate life cycle model for JaxWS services in the JaxWS spec 2.1mrel2 (section 11.1.2).

      Attachments

        Issue Links

          Activity

            People

              ropalka Richard Opalka
              rhn-engineering-adinn Andrew Dinn
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: