title: Wildfly Data Persistence
body: <p>I am currently working on a Java EE project and am working with the Wildfly server.
  I have a Web project and EJB project which are deployed onto the Wildfly server.
  I can save a user for example, but only for as long as the server is running.
  There is no data persistence between server downtimes. 
  I have searched through the internet but couldn't find an answer.</p>
  
  <p>My persistence.xml looks like this:</p>
  
  <pre><code>   &lt;persistence-unit name="primary"&gt;
    &lt;!-- If you are running in a production environment, add a managed 
       data source, this example data source is just for development and testing! --&gt;
    &lt;!-- The datasource is deployed as WEB-INF/kitchensink-quickstart-ds.xml, you
       can find it in the source at src/main/webapp/WEB-INF/kitchensink-quickstart-ds.xml --&gt;
    &lt;jta-data-source&gt;java:jboss/datasources/ExampleDS&lt;/jta-data-source&gt;
    &lt;properties&gt;
       &lt;!-- Properties for Hibernate --&gt;
       &lt;property name="hibernate.hbm2ddl.auto" value="create-drop" /&gt;
       &lt;property name="hibernate.show_sql" value="false" /&gt;
       &lt;value="true"/&gt;
    &lt;/properties&gt;
  </code></pre>
  
  <p></p>
  
  <p>If I want to persist any information, do i need to reconfigure this file?</p>
  
  <p>I hope you can help me :)</p>