uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

36.6 Initializing and destroying the handler

This section describes the operations of the JAX-WS engine when the handler is initialized and when the handler is destroyed.

Organization of this section
(1) In the Web Service
(2) In Web Service client

(1) In the Web Service

When the handler has a method that is annotated using the javax.annotation.PostConstruct annotation, that method is invoked to initialize the Web Service.

When the handler has a method that is annotated using the javax.annotation.PreDestory annotation, that method is invoked to destroy the Web Service.

(2) In Web Service client

Even if the handler has methods that are annotated using the javax.annotation.PostConstruct annotation or javax.annotation.PreDestory annotation, those methods are not invoked.