2 Replies Latest reply on Apr 6, 2005 8:40 AM by Paul Kuit

    Hibernate integration and CachedConnectionManager

    Markus Wiederkehr Newbie

      I'm using JBoss 3.2.7 and Hibernate. I followed the instructions under http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate to create a har-archive and access the Hibernate session through HibernateContext.getSession().

      Everything seems to work, but I get the following output in the log files:

      14:10:43,152 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@926ec8

      What's wrong?

        • 1. Re: Hibernate integration and CachedConnectionManager
          Paul Kuit Newbie

          I´m probably missing something very important, but I understood while using HibernateContext.getSesion(String jndi) would give me a valid Session for the current transaction, and JBoss would take care of all (dis)connecting of the Session and transaction management. But when I remove the statements session.close(), I receive the same message;

          Closing a connection for you. Please close them yourself:

          When I change the
          true
          option in the JCA service the message turns into;

          Unregistered handle that was not registered! org.jboss.resource.adapter.jdbc.WrappedConnection@139c789 for managedConnection: org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@de9738

          I tried this on JBoss 3.2.7 and 4.0.1_sp1, but with the same results, using Hibernate 2.1.8.

          • 2. Re: Hibernate integration and CachedConnectionManager
            Paul Kuit Newbie

            Sorry, was removed some HTML from my previous reply;

            When I change the true option in the JCA service

            Should be;

            SpecCompliant -> true in jbossjca-service.xml