Note that there are some explanatory texts on larger screens.

plurals
  1. POJPA CreateEntityManagerFactory() method hangs
    text
    copied!<p>I am using this method in the following way </p> <pre><code>EntityManagerFactory emftemp = Persistence.createEntityManagerFactory("XYZ"); </code></pre> <p>and my <code>persistence.xml</code> has the following entry for this unit </p> <pre><code>&lt;persistence-unit name="XYZ" transaction-type="RESOURCE_LOCAL"&gt; &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt; &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt; &lt;properties&gt; &lt;property name="hibernate.show_sql" value="false"/&gt; &lt;property name="hibernate.hbm2ddl.auto" value="validate"/&gt; &lt;property name="hibernate.query.substitutions" value="true=1, false=0"/&gt; &lt;property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver"/&gt; &lt;property name="hibernate.connection.url" value="jdbc:oracle:thin:@aesop-db.corp.nlg1.com:1521:TLCSDEV4"/&gt; &lt;property name="hibernate.connection.username" value="abcd"/&gt; &lt;property name="hibernate.connection.password" value="abcd"/&gt; &lt;property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9iDialect"/&gt; &lt;property name="hibernate.connection.timeout" value="120"/&gt; &lt;property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" /&gt; &lt;property name="hibernate.c3p0.min_size" value="2"/&gt; &lt;property name="hibernate.c3p0.max_size" value="2"/&gt; &lt;property name="hibernate.c3p0.idle_test_period" value="60"/&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; </code></pre> <p>This is a Java application and I am using the hibernate3.jar and I am using ejb3-persistence.jar and JDK1.5.</p> <p>The problem is that everytime I run the application, it hangs on this call . Its not throwing any exception or error . It just hangs at that point. </p> <p>Can anyone help in identifying why it does not move forward ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload