title: Openejb with JPA - able to retrieve but cannot insert into database
body: <p>I am using openejb as my standalone container to run my unit testcases, in all the test in all the tests i was able to retrieve the values but not able to insert or update. Even if i try entitymanager.merge(obj), it is selecting the value correctly but it is not updating it.</p>
  
  <p>I am new to this , so please help me with this error</p>
  
  <p>thanks in advance</p>
  
  <p>my persistence.xml file</p>
  
  <pre><code> &lt;persistence-unit name="test"
          transaction-type="JTA"&gt;
          &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
          &lt;jta-data-source&gt;java:/OracleDS&lt;/jta-data-source&gt;
  .....entity classes.....
  &lt;properties&gt;
              &lt;property name="eclipselink.target-server" value="JBoss" /&gt;
              &lt;property name="eclipselink.target-database" value="Oracle" /&gt;
              &lt;property name="eclipselink.logging.level" value="FINE" /&gt;
              &lt;property name="eclipselink.logging.parameters" value="true" /&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;  
  </code></pre>
  
  <p>my dao method</p>
  
  <pre><code>tp.setname("van");
  tp.settype("vehicle");
  //entityManager.getTransaction().begin();
  entityManager.merge(tp);
  //entityManager.getTransaction().commit();
  </code></pre>