[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6256) persistence.xml-specified javax.persistence.lock.timeout is ignored

Andrei Badea (JIRA) noreply at atlassian.com
Wed May 25 12:03:25 EDT 2011


persistence.xml-specified javax.persistence.lock.timeout is ignored
-------------------------------------------------------------------

                 Key: HHH-6256
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6256
             Project: Hibernate Core
          Issue Type: Bug
          Components: entity-manager
    Affects Versions: 3.6.3
            Reporter: Andrei Badea


With this {{persistence.xml}}
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<persistence ...>
  <persistence-unit name="foo" transaction-type="RESOURCE_LOCAL">
    <properties>
      ...      
      <property name="javax.persistence.lock.timeout" value="60000"/>
    </properties>
  </persistence-unit>
</persistence>
{noformat}

the following code displays a value of "-1" for "javax.persistence.lock.timeout".

{noformat}
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("foo");
        EntityManager em = emf.createEntityManager();
        System.out.println(em.getProperties());
{noformat}

Note how {{EntitytManagerFactoryImpl.createEntityManager()}} passes a null map, so the EMF properties are not passed to the EM.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list