[jboss-dev-forums] [JBoss AS 7 Development] - Re: JBossWS/CXF configuration / extensions

Richard Opalka do-not-reply at jboss.com
Wed Dec 14 07:19:32 EST 2011


Richard Opalka [http://community.jboss.org/people/ropalka] created the discussion

"Re: JBossWS/CXF configuration / extensions"

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

--------------------------------------------------------------
> Robert Stupp wrote:
> 
> BTW: It would be nice to remove the "final" keywork from the org.jboss.ws.common.invocation.InvocationHandlerJAXWS and similiar classes - and from the org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke() method - to allow users to override this functionality. I had to copy the code to my own implementations and could not reuse existing classes. Is it ok to open a new issue (RFE) in Jira?
We're not going to remove "final" keywords but I have a workaround description for you instead  :) 
I see U're dealing with JBossWS internals so the following workaround might be acceptable for you:

 * implement your own version of org.jboss.wsf.spi.invocation.InvocationHandlerFactory (for inspiration see org.jboss.as.webservices.invocation.InvocationHandlerFactoryImpl)
 * your implementation will register your own delegating invocation handlers
 * your every invocation handler will contain JBossWS specific handler as delegate and it will delegate all calls to it ( http://en.wikipedia.org/wiki/Adapter_pattern http://en.wikipedia.org/wiki/Adapter_pattern)
 * around these delegating calls you can implement your own monitoring/logging code

Feel free to ask further questions if something is not clear.
--------------------------------------------------------------

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

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

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


More information about the jboss-dev-forums mailing list