title: JPA duplicate entity creation issue
body: <p>I implemented a ejb3 stateless session bean to import set of recipients to the database . I committed each recipient record, with @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) in a public method </p>
  
  <pre><code> @Stateless
   @Local(ImportRecipientManagerLocal.class)
   @SecurityDomain("recipient")
  
   public class ImportRecipientManagerSLB implements ImportRecipientManagerLocal {
  
   @EJB
   private ImportRecipientManagerLocal anotherRecipientManager;
  
   @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
   @TransactionTimeout(30 * 60)
   @Override
   public RecipientImportStatus saveRecipient(Recipient recipient) throws 
   ImportRecipientFailedException  {
         // saves the reicpient
    }
  
  
   public  RecipientsImportStatus createRecipients(List&lt;Recipient&gt; recipientList) {
  
   // while recipient exist in list
      anotherRecipientManager.saveRecipient(recipient);  
   // end while
  
  }
  </code></pre>
  
  <p>The problem is when customer has  , submitted 2 same files (contents are same) simultaneously  , it had created duplicate recipients. I think this is because the two session bean processors are executed in parallel. but what bothers me is , since the end of saveRecipient , the transaction is committed , the data should be visible to the other transaction. Isn't it?</p>
  
  <p>I can't understand how it is happening, Appreciate if someone could assist me on this.</p>