Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 567
Joaquim Oliveira Avatar asked Oct 26 '11 20:10

Joaquim Oliveira


1 Answers

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.

like image 96
Gonzalo Garcia Lasurtegui Avatar answered Sep 28 '22 06:09

Gonzalo Garcia Lasurtegui