Is there a way to reference a handler configuration file (e.g.: handler.xml) that is distributed inside a JAR file?
Something like this: @HandlerChain(file="somefile.jar")
or @HandlerChain(file="myhandler.xml")
, assuming that myhandler.xml
is stored in somefile.jar
.
For both server and client implementations of handlers using the @HandlerChain annotation, you must specify the location of the handler configuration as either a relative path from the annotated file or as an absolute URL. For example:
@HandlerChain(file="../../common/handlers/myhandlers.xml")
or
@HandlerChain(file="http://foo.com/myhandlers.xml")
Taken from this doc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With