axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <>
Subject RE: Proposal: handlerInfoChain at deployment and globalConfigurat ion levels
Date Fri, 31 Oct 2003 15:32:36 GMT

+1 - sounds useful and reasonable to me.

But Glen is the expert on handler chains; he was one of the original architects.


Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Vance Maverick [] 
Sent: Friday, October 31, 2003 6:03 AM
Subject: Re: Proposal: handlerInfoChain at deployment and globalConfiguration levels

Correction -- my first proposal reflected a misunderstanding.  requestFlow
and responseFlow declarations aren't processed as children of the deployment
element -- only as children of the globalConfiguration and service elements.
So here's the proposal again, simplified to comport with reality.


I would like to be able to declare JAX-RPC-style Handlers at the
globalConfiguration level.  (It's already possible to declare Axis-style
handlers there, in requestFlow and responseFlow chains.)  While I'm doing
this to meet a need of my own, I would ultimately like to
contribute the work to the Axis project -- so I'd like to get feedback from
the community on the best way to do it.

Syntactically, the only novelty will be to allow the existing
handlerInfoChain element as a child of globalConfiguration, as well as of

As for the semantics, I believe that it's pretty straightforward to say that
the handler chain for a service consists of
- the handlers from the globalConfiguration handler chain, if any, in order
- followed by the handlers from the chain declared for the service itself,
if any, in order.
Thus in the sample deployment file below, the JAX-RPC chain for service X
consists of handlers 1, 2, 3, and 4, in that order; the chain for service Y
is handlers 1, 2, 5, and 6.

What do people think?  The implementation is simple (small modifications to
WSDDService and WSDDGlobalConfiguration; support for concatenation in
WSDDJAXRPCHandlerInfoChain).  Existing WSDD files would continue to work as

Is there a Sun proposal for configuring these chains that should be taken
into account?


== Simplified example of extended handlerInfoChain syntax ==
   <handlerInfo classname="handler.1"/>
   <handlerInfo classname="handler.2"/>

 <service name="X" provider="java:RPC">
  <parameter name="className" value="service.X"/>

   <handlerInfo classname="handler.3"/>
   <handlerInfo classname="handler.4"/>

 <service name="Y" provider="java:RPC">
  <parameter name="className" value="service.Y"/>

   <handlerInfo classname="handler.5"/>
   <handlerInfo classname="handler.6"/>

View raw message