Hi! I currently have multiple transformers within ...
# help
h
Hi! I currently have multiple transformers within a single extension jar file. However when I run it with the following command, only the last transformer defined in the command is getting picked up (tried switching around both). Should I have a unique extension jar file for each transformer or is it an issue with the command?
java -cp default-response.jar:wiremock-standalone-3.0.0.jar \wiremock.Run
—`extensions org.xyz.abcTransformer,org.xyz.defTransformer` Also, I cannot get —local-response-templating to work along with the above command
t
Hard to say for sure what’s happening here, but I suggest the following for your extensions: 1. Create your extensions via a single
ExtensionFactory
instance (these can return a list of extension impls) 2. Add a service descriptor to your project so that you can avoid using
--extensions
altogether and have them auto-loaded.
h
Thanks Tom, managed to get it working by auto loading it
👍 1