[jboss-dev-forums] [JBoss Web Services Development] - Re: Can I modify the HandlerChain at deploy time?
Paul Robinson
do-not-reply at jboss.com
Mon Feb 6 04:57:12 EST 2012
Paul Robinson [https://community.jboss.org/people/paul.robinson] created the discussion
"Re: Can I modify the HandlerChain at deploy time?"
To view the discussion, visit: https://community.jboss.org/message/714594#714594
--------------------------------------------------------------
Alessio,
No problem on the late reply. I'm making progress on my feature, the only remaining stuff is making sure it doesn't break anything existing ;-)
> in 4) you should check if there's a WebServicesMetaData attachment; if that's the case, you need to update the existing one, otherwsise the data in it would be lost
Yes, that makes sense. I couldn't find a reference to webservices.xml in the JAX-WS spes. Is this just a JAX-RPC feature?
> regarding your logic for updating the WS_ENDPOINT_HANDLERS_MAPPING_KEY instead, I believe you should have that run after Phase.PARSE_JAXWS_HANDLER_CHAIN_ANNOTATION but before Phase.PARSE_JAXWS_HANDLER_CREATE_COMPONENT_DESCRIPTIONS, as there's a DUP registered at that phase which should be reading the data. You might need to shift Phase.PARSE_JAXWS_ENDPOINT_CREATE_COMPONENT_DESCRIPTIONS and Phase.PARSE_JAXWS_HANDLER_CREATE_COMPONENT_DESCRIPTIONS values down a bit, just be sure to keep the rest of the ordering.
I think this is what I have with the following?
| | public static final int PARSE_JAXWS_HANDLER_CHAIN_ANNOTATION | = 0x2055; |
| | public static final int PARSE_TXFRAMEWORK_HANDLERS | = 0x2056; |
| | public static final int PARSE_WS_JMS_INTEGRATION | = 0x2057; |
| | public static final int PARSE_JAXWS_ENDPOINT_CREATE_COMPONENT_DESCRIPTIONS | = 0x2058; |
| | public static final int PARSE_JAXWS_HANDLER_CREATE_COMPONENT_DESCRIPTIONS | = 0x2059; |
Excuse the table, I couldn't get this editor to allow me to paste this as java code.
> to answer your question on the actual need for populating WS_ENDPOINT_HANDLERS_MAPPING_KEY attachment, yeah, that's required for having the AS7 components properly created for your handlers too.
What AS7 components do you mean here?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/714594#714594]
Start a new discussion in JBoss Web Services Development at Community
[https://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/20120206/0890b181/attachment.html
More information about the jboss-dev-forums
mailing list