I just verified it on weblogic 8.1 SP4. I'll include my hibernate config file for reference purposes. No exceptions were generated when I ran my test, but no transactions were committed. When I dropped back to hibernate 3.1, the container committed the transaction.
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 -->
<!-- JDBC Connection -->
<property name="connection.datasource">seahawkRepositoryDataSource</property>
<property name="hibernate.connection.driver_class">weblogic.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.autocommit">false</property>
<!-- Transaction management -->
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<property name="transaction.factory.class">org.hibernate.transaction.CMTTransactionFactory</property>
<!-- JNDI Settings -->
<!-- ...not working so well with Weblogic -->
<!-- http://dev2dev.bea.com/blog/pmalani/archive/2005/07/configuring_web_1.html -->
<!-- http://www.hibernate.org/120.html#A8 -->
<property name="hibernate.session_factory_name">java:hibernate/SessionFactory</property>
<property name="jndi.url">t3://localhost:7001</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">jta</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<property name="use_sql_comments">true</property>
<!-- Fix error with ANTLR conflict between Hibernate/Weblogic -->
<!-- http://www.onthoo.com/blog/programming/2005/04/hibernate-moving-day.html -->
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
<!-- POJO mapping files -->
<!-- Portal queries -->
</session-factory>
</hibernate-configuration>