Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For JBoss 5.1 the following file needs to be edited:</p> <p><code>&lt;jboss_dir&gt;/server/default/deployers/ejb3.deployer/META-INF/jpa-deployers-jboss-beans.xml</code></p> <pre><code>&lt;bean name="PersistenceUnitDeployer" class="org.jboss.jpa.deployers.PersistenceUnitDeployer"&gt; &lt;property name="defaultPersistenceProperties"&gt; &lt;map keyClass="java.lang.String" valueClass="java.lang.String"&gt; &lt;entry&gt; &lt;key&gt;hibernate.transaction.manager_lookup_class&lt;/key&gt; &lt;value&gt;org.hibernate.transaction.JBossTransactionManagerLookup&lt;/value&gt; &lt;/entry&gt; &lt;entry&gt; &lt;key&gt;hibernate.hbm2ddl.auto&lt;/key&gt; &lt;value&gt;validate&lt;/value&gt; &lt;/entry&gt; &lt;entry&gt; &lt;key&gt;hibernate.cache.provider_class&lt;/key&gt; &lt;value&gt;org.hibernate.cache.HashtableCacheProvider&lt;/value&gt; &lt;/entry&gt; &lt;entry&gt; &lt;key&gt;hibernate.jndi.java.naming.factory.initial&lt;/key&gt; &lt;value&gt;org.jnp.interfaces.NamingContextFactory&lt;/value&gt; &lt;/entry&gt; &lt;entry&gt; &lt;key&gt;hibernate.jndi.java.naming.factory.url.pkgs&lt;/key&gt; &lt;value&gt;org.jboss.naming:org.jnp.interfaces&lt;/value&gt; &lt;/entry&gt; &lt;entry&gt; &lt;key&gt;hibernate.bytecode.use_reflection_optimizer&lt;/key&gt; &lt;value&gt;false&lt;/value&gt; &lt;/entry&gt; &lt;!-- I don't think this is honored, but EJB3Deployer uses it --&gt; &lt;entry&gt; &lt;key&gt;hibernate.bytecode.provider&lt;/key&gt; &lt;value&gt;javassist&lt;/value&gt; &lt;/entry&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre> <p>These properties can be edited in the following file in JBoss 4.2:</p> <p><code>&lt;jboss_dir&gt;/server/default/deploy/ejb3.deployer/META-INF/persistence.properties</code></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