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 been looking at the code, and I have a rough idea of where I need to begin.

 

1) I think I need to impliment an AbstractDeploymentAspect and specify it in jbossws-cxf-config-as7.xml? Is there another place that I can specify my AbstractDeploymentAspect impl as I'd prefer not to require the JBossWS code to be changed. I'm sure you wouldn't want me to do that either.

 

2) When registering my AbstractDeploymentAspect impl, I need to specify that I depend on some other AbstractDeploymentAspect implimentations. This will ensure my code is invoked at the right time.

 

3) My impl of AbstractDeploymentAspect should query the Deployment object to find out what services are being deployed.

 

4) I then look up the service classes in jandex and obtain for my annotations.

 

5) I make some call on the Deployment object to specify the handler(s) I wish to add to the handler chain. This handler is put in place when the  MetadataBuilder is invoked from DescriptorDeploymentAspect.

 

Does this make sense so far?

 

Thanks,

 

Paul.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services Development at Community