title: How to execute insert query on deploy of java ee application?
body: <p>I have a java ee application with a web application and ejb module. There is some tables I want to be populated automatically when deployed. I have the entities set up and the sql file with the queries to be executed. </p>
  
  <p>I feel it may be something to do with the persistence.xml file but not sure what to include. So, how do I get my server(wildfly) to execute the sql queries on deploy, similar to the way that you can specify the persistence.xml to drop and create as the table generation strategy. </p>
  
  <p>If it makes a difference, I am using postgres for my database provider, java ee 7 and wildfly 8.2.0.Final for my server.</p>