I just switched to JBoss 4.0.1, now I'm getting some funyness with my hibernate integration that I wasn't previoulsly. One issue, is that whenever I have a transaction (like the one below) jboss is complaining about closing a connection for me. I don't think there's something necessarily wrong, I want the container to close connections for me. Things are funtioning okay, I just want to get this msg out of my logs. Any help?
Hibernate version: Hibernate distributed with JBoss 4.0.1 (2.1.7?)
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Code:
try {
Session sess = HibernateContext.getSession(DBO_SESSION);
Criteria attCrt = sess.createCriteria( Attribute.class );
attCrt.add( Expression.eq( "id", id ) );
att = (Attribute) attCrt.uniqueResult();
} catch (HibernateException e) {
//TODO fix error report
throw new DataStoreException(e.getMessage(), e);
}
return att;
Full stack trace of any exception that occurs:Code:
10:37:33,718 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@ef54ee
Name and version of the database you are using:
MySQL 4
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: INFO