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

Alessio Soldano do-not-reply at jboss.com
Thu Dec 15 06:30:22 EST 2011


Alessio Soldano [http://community.jboss.org/people/asoldano] created the discussion

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

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

--------------------------------------------------------------
Hi Paul,
you shouldn't (need) to play with the JBossWS integration deployment aspects. Your additional deployer (DeploymentUnitProcessor (DUP) in AS7) would likely live in the AS7 XTS subsystem and use the JBossWS SPI to modify the  http://anonsvn.jboss.org/repos/jbossws/spi/tags/jbossws-spi-2.0.0.CR1/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesMetaData.java org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData that is created during  https://github.com/jbossas/jboss-as/blob/master/server/src/main/java/org/jboss/as/server/deployment/Phase.java Phase.PARSE of AS7.
I would wire that new DUP into the deployers chain after the Phase.PARSE_JBOSS_WEBSERVICES_XML, so once the  https://github.com/jbossas/jboss-as/blob/master/webservices/server-integration/src/main/java/org/jboss/as/webservices/deployers/WebservicesDescriptorDeploymentProcessor.java WebservicesDescriptorDeploymentProcessor and JBossWebservicesDescriptorDeploymentProcessor have run. Those two basically create the WebservicesMetaData into the deployment unit if a webservices.xml is found in the deployment. You'd need to update that object or create it if the webservices.xml was not in the deployment. Once that's done, the jboss-as7 / jbossws deployment can go on as is and your additional info will be considered.
If you want to have get an idea of the DUP that are involved in the ws part of the deployment process, the class that adds them is  https://github.com/jbossas/jboss-as/blob/master/webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/WSDeploymentActivator.java org.jboss.as.webservices.dmr.WSDeploymentActivator
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/641748#641748]

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/cf8bf9dc/attachment.html 


More information about the jboss-dev-forums mailing list