Hardcoding policies
How to hardcode/overwrite/overloadĀ policies, making it impossible to change them at runtime.
Modify the context file (the xml-file in tomcats conf folder), eg.
nano /usr/share/tomcat/conf/Catalina/localhost/app.xml
Within th Context element in the xml-file add one Parameter element per policy that should be hardcoded/overwritten, eg.
<Parameter name="Policy.smtpTestMode" value="true"/>