Bobby Bissett wrote:
> (Note: Am bcc'ing Harold since I don't know if he's on the email list.)
He is.
> I have the templates for web.xml and sun-jaxws.xml mostly done. Have we
> considered how users will add handlers to their test cases?
I think it was briefly considered at one point but we haven't done any
work on that.
> As background, here are the three ways users do it normally:
>
> -Starting from java, an annotation is added to the service impl class
> that points to an xml file containing the handler lists.
> -Starting from wsdl, the user adds the handler chain xml to the
> customization file passed to wsimport.
> -On the server side, users can add the handler chain xml to the
> sun-jaxws.xml file (this overrides other ways of specifying handlers).
>
> In each case, the xml used to describe the handlers is the same. In
> other words, the handler descriptor schema (jsr 109) is the same no
> matter how they specify the handlers.
>
> How would we like to add this? I've attached a simple sample of a
> handler chain file, but they can get very complex as well. We may have
> to let users supply the whole file rather than providing a short cut,
> but I'm not sure.
I wonder if the harness can scan all the server source files, look for
handlers (they extend from a known classes, right?), then generate
necessary pieces.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com