How do I configure @HandlerChain to point to a handler chain configuration file inside a JAR file?

Is there a way to reference a handler configuration file (for example: handler.xml) that is distributed inside a JAR file?

Something like this: @HandlerChain(file="somefile.jar") or @HandlerChain(file="myhandler.xml") , assuming myhandler.xml is stored in somefile.jar .

+4
source share
2 answers

For server and client handler implementations using @HandlerChain, you must specify the handler location either as a relative path from the annotated file or as an absolute URL. For instance:

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

or

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

Taken from this doc.

+3
source

The handler-chain.xml file must be inside the same path path or the same jar. You need to specify the actual xml location to download.

0
source

All Articles