-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate and Jboss Application Server
PostPosted: Tue Aug 01, 2006 4:05 pm 
Newbie

Joined: Wed Apr 05, 2006 1:37 pm
Posts: 1
I'm using Hibernate 3.1 with Oracle 9i running on JBoss 4.0.3 SP1.
When I create a SessionFactory with datasource the undeploy doesn't work fine. The PermGen space is not released. I think Hibernate is holding the connection. Any idea? (Sorry about the English)

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
   "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
   "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
   <session-factory>
   
      <!-- Database connection settings -->
      <property name="hibernate.connection.datasource">java:AplicacoesApoioDS</property>
      
      <!-- JDBC connection pool (use the built-in) -->
      <property name="connection.pool_size">1</property>
   
      <!-- SQL dialect -->
      <property name="dialect">org.hibernate.dialect.OracleDialect</property>
      <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
      <property name="show_sql">true</property>

      <mapping resource="/br/gov/trf1/aplicacoesapoio/calendario/model/Feriado.hbm.xml"/>
      <mapping resource="/br/gov/trf1/aplicacoesapoio/calendario/model/HistoricoFeriado.hbm.xml"/>

   </session-factory>
</hibernate-configuration>



Code:
<datasources>
  <local-tx-datasource>
    <jndi-name>AplicacoesApoioDS</jndi-name>
      <connection-url>jdbc:oracle:oci:@xxx</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>xxx</user-name>
      <password>xxx</password>
      <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      <idle-timeout-minutes>1</idle-timeout-minutes>
  </local-tx-datasource>

</datasources>

_________________
Clovis Leoncio Junior
Stefanini IT Solutions
Tribunal Regional Federal
Brasília - Distrito Federal
Brasil


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.