title: How to disable server-side JavaScript on MongoDB from Java Application
body: <p>I have a java web application that does CRUD ops on a MongoDB Atlas instance. I want to disable server-side JavaScript for my Atlas instance from my Java web application.<br>
  What I have found out are <a href="https://medium.com/mongoaudit/how-to-disable-server-side-javascript-on-mongodb-a099fc0b8f75" rel="nofollow noreferrer">this</a> and <a href="https://docs.mongodb.com/manual/faq/fundamentals/#javascript" rel="nofollow noreferrer">this</a> which basically say that I need to either alter the <code>mongod.conf</code> file or use the command line args <code>--noscripting</code> on <code>mongod</code> command. But I want to accomplish this using my Java web application when the web app starts.  </p>
  
  <p><strong>Does the MongoDB java driver provide a mechanism to achieve this?</strong><br>
  <strong>Are there any alternate ways to get this done?</strong></p>
  
  <p>Note: I do not want to pass <code>mongod</code> command from my web application.</p>