如何配置@HandlerChain指向JAR文件中的处理程序链配置文件?

Joa*_*ira 5 java web-services jax-ws

有没有办法引用分布在JAR文件中的处理程序配置文件(例如:handler.xml)?

像这样:@HandlerChain(file="somefile.jar")或者@HandlerChain(file="myhandler.xml"),假设myhandler.xml存储在somefile.jar.

Gon*_*gui 5

对于使用 @HandlerChain 注释的处理程序的服务器和客户端实现,您必须将处理程序配置的位置指定为注释文件的相对路径或绝对 URL。例如:

@HandlerChain(file="../../common/handlers/myhandlers.xml")

或者

@HandlerChain(file="http://foo.com/myhandlers.xml")

摘自文档。