title: concurrency problem when trying to delete in jpa
body: <p>I have 2 EARs 1_EAR and 2_EAR (these has websearvices and other code).Now i have 1 project DB_prj that is used for interacting with database.Now all projects 1_EAR,2_EAR, DB_prj have a persistence.xml in their  respective meta-inf folder.Now  only 1_EAR and 2_EAR have web.xml in it. 2_EAR is a new project which is developed by our team. 1_EAr is working fine.Now when i try to delete any record by using class  developed which i placed in 2_EAR my code hangs and times out.To delete a record i call API from  DB_prj which works fine when called from 1_EAR.In web.xml of 1_EAR and 2_EAR i have following in common. web.xml of 1_EAR has many other things whic are not present in web.xml of 2_EAR.</p>
  
  <pre><code>&lt;persistence-context-ref&gt;
   &lt;persistence-context-ref-name&gt;persistence/XYZPersist&lt;/persistence-context-ref-name&gt;
   &lt;persistence-unit-name&gt;XYZPersist&lt;/persistence-unit-name&gt;
   &lt;/persistence-context-ref&gt;
  </code></pre>
  
  <p>Can any one help me in solving this problem?The above code i had placed in web.xml of 2_EAR after somone answered my  post @ <a href="https://stackoverflow.com/questions/4545593/problem-with-jndi">problem with JNDI</a></p>