I understand the distinction. It seems the issues I originally raised
would be the same in both cases. The difference is whether the
application would be built as a collection of scripts versus a full
Java application.

As I tried to explain, no configuration files will be written to disk if BaseX is invoked via Java as described. I understood that's one of the side effects you wanted to circumvent?