title: File writing Java EE Web App with use of Jboss modules
body: <p>I would like to save files in a Java EE web application deployed to a JBoss (EAP 6.1+).
  Using a database is not an option.
  I have read all answers which sound similar to this topic (especially from BalusC).
  However, I am not quite sure if my thoughts on this are completely clear.</p>
  
  <p>My current implementation has till now been tested only on a local jboss server. I have made <strong>use of JBoss modules</strong> to save my resources and more specifically:  </p>
  
  <ol>
  <li><p>I have created a new jboss module   </p></li>
  <li><p>and I am accessing my resources (from the Servlet container and not from        an EJB container) path via:
      getClass().getClassLoader().getResource("/my_path")</p></li>
  </ol>
  
  <p>Given that I am <strong>not writing any files</strong> <strong>to</strong> (or reading from) <strong>the deployment folder</strong>,
  I am not expecting any problems to occur after restarting jboss (eg loss of data).</p>
  
  <p>In a stage where multitple machines are used (for <em>load balancing</em>) is it expected that the files are only visible to the machine where a file is written? Or are the contents of jboss <strong>modules at all machines visible and synchronized?</strong></p>
  
  <p>If one takes also into account that no parallel attempts will be made to access some resource simultaneously:<br>
      Are there any other circumstances where inconistencies/problem should be expected?</p>