axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isuru Eranga Suriarachchi (JIRA)" <>
Subject [jira] Commented: (AXIS2-4340) JAX-WS handler's handleClose called before request processing by the endpoint
Date Sat, 22 Jan 2011 07:01:45 GMT


Isuru Eranga Suriarachchi commented on AXIS2-4340:

I think the spec doesn't specifically mention anything about closing a handler for a one-way
operation. Basically the main intention of closing a handler is to clear any resources which
are allocated for the current invocation. So in the one-way case, after invoking a handler,
it doesn't make any difference whether we close the handler before or after executing the
service logic. Therefore I think this is not an issue.


> JAX-WS handler's handleClose called before request processing by the endpoint
> -----------------------------------------------------------------------------
>                 Key: AXIS2-4340
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.4
>         Environment: All Platforms and operating systems
>            Reporter: Amit Modi
>            Assignee: Isuru Eranga Suriarachchi
> 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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message