[jboss-dev-forums] [JBoss Web Services Development] - Re: Can I modify the HandlerChain at deploy time?

Paul Robinson do-not-reply at jboss.com
Thu Dec 15 06:04:23 EST 2011


Paul Robinson [http://community.jboss.org/people/paul.robinson] created the discussion

"Re: Can I modify the HandlerChain at deploy time?"

To view the discussion, visit: http://community.jboss.org/message/641739#641739

--------------------------------------------------------------
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
[http://community.jboss.org/message/641739#641739]

Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111215/96dda6f5/attachment.html 


More information about the jboss-dev-forums mailing list