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"/>


Revision #2
Created 11 November 2025 13:48:42 by Theis Villumsen
Updated 11 November 2025 15:13:27 by Theis Villumsen