title: Integrating Groovy with Java
body: <p>I am currently working on integrating Groovy with an existing Java project. The Groovy script basically parses XML into objects and then will use existing DAO's to save, update, etc. I have 2 projects. One groovy. One java. Using Maven (I used the gmaven plugin), I build Java and then I build the Groovy project. </p>
  
  <p>I would like to be able to call Groovy scripts from the Java project and vice versa if the case need be. I am sure there is a way to do this, but I am unable to do this.</p>
  
  <p>For example My Java classes are</p>
  
  <pre><code>State(1 Field)
  StateDAO
  </code></pre>
  
  <p>The Groovy script to be called basically parses an XML document and then populates a table using the DAO with the value,s and for now all I would like it to do is post it to a database.</p>
  
  <p>Please let me know if you have any suggestions. Thanks!</p>