JBoss Community

Re: Can I modify the HandlerChain at deploy time?

created by Paul Robinson in JBoss Web Services Development - View the full discussion

Alessio,

 

I've re-read your messages and I now understand what you meant about the WebservicesMetaData. I think I got distracted by the WS_ENDPOINT_HANDLERS_MAPPING_KEY and went off in the wrong direction.

 

Anyway, this is what I have now:

 

  1. A DeploymentActivator with a Phase priority that comes imediatly after PARSE_JAXWS_HANDLER_CHAIN_ANNOTATION.
  2. A DeploymentUnitProcessor that...
    1. Obtains the desired annotation from the Web service impl
    2. Creates a new instance of WebservicesMetaData
    3. Adds the handler to the portComponent of the WebservicesMetaData
    4. Attaches the WebservicesMetaData to the DeploymentUnit with key WEBSERVICES_METADATA_KEY

 

I have these issues now:

 

  1. How much other information do I need to provide in the WebservicesMetaData? There seems to be a lot of information in there that may or may not be relevant to the service being deployed. It also feels like I would be re-inventing the wheel if I was to try to obtain all the relevant data about the service.
  2. Will constructing the WebservicesMetaData be very brittle? Is it likely to break every time the format of this changes? Does this data-structure change on a regular basis?

 

We can still chat on IRC, if you think that would be easiest, or we could continue with this forum discussion. Either is fine by me.

 

Thanks again with all your help on this, It's much appreciated.

 

Paul.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services Development at Community