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,

 

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

Start a new discussion in JBoss Web Services Development at Community