-->
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: CMT management/delegation broken in 3.2 RC2
PostPosted: Fri Jul 14, 2006 7:09 pm 
Beginner
Beginner

Joined: Tue May 23, 2006 4:10 pm
Posts: 38
Location: Charleston, SC
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>



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.