You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amit Modi (JIRA)" <ji...@apache.org> on 2009/05/11 12:25:45 UTC

[jira] Created: (AXIS2-4340) JAX-WS handler's handleClose called before request processing by the endpoint

JAX-WS handler's handleClose called before request processing by the endpoint
-----------------------------------------------------------------------------

                 Key: AXIS2-4340
                 URL: https://issues.apache.org/jira/browse/AXIS2-4340
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
    Affects Versions: 1.4
         Environment: All Platforms and operating systems
            Reporter: Amit Modi


The issue is related to the JAX-WS handlers for one-way request messages. The handleClose method gets called before the service endpoint processes the request. Shouldn't handleClose be called after the request is processed by the service enpoint?  The conclusion of a MEP will be only when message is received by the service endpoint and as per the spec handleClose should be called after conclusion of MEP (as below).

As per the spec

A handler's close method is called at the conclusion of a message exchange pattern (MEP). It is called 30
just prior to the binding dispatching the final message, fault or exception of the MEP and may be used to 31
clean up per-MEP resources allocated by a handler. The close method is only called on handlers that were 32
previously invoked via either handleMessage or handleFault 33
} Conformance (Invoking close): At the conclusion of an MEP, an implementation MUST call the close 34
method of each handler that was previously invoked during that MEP via either handleMessage or handle- 35
Fault. 36
} Conformance (Order of close invocations): Handlers are invoked in the reverse order that they appear 37
in the handler chain.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.