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.  [ 2 posts ] 
Author Message
 Post subject: WebSphere 6.0 and hibernate
PostPosted: Wed Jul 05, 2006 9:00 am 
Newbie

Joined: Tue Jul 04, 2006 2:27 am
Posts: 2
Hi all,

i'm using hibernate 3.1.3 with websphere 6.0.
I have this problem: Container managed session bean throws exception but changes are commited to database.

Could anybody check my configuration of hibernate

hibernate.cfg.xml:



Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.session_factory_name">hibernate/Excom2HibernateFactory</property>
        <property name="hibernate.connection.datasource">jdbc/Excom2DS</property>
        <property name="show_sql">false</property>
        <property name="dialect">com.pxpfs.utilities.hibernate3.ExcomH3SQLServerDialect</property>
        <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
   <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
      <property name="hibernate.transaction.flush_before_completion">true</property>
      <property name="hibernate.transaction.auto_close_session">true</property>
        <!-- Mapping files -->
    .......

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


I dont do any flush,close, session operation

I tried to use CMTTransactionFactory too but the same result, results are stored to database.


Top
 Profile  
 
 Post subject: Re: WebSphere 6.0 and hibernate
PostPosted: Thu Jul 06, 2006 10:30 am 
Newbie

Joined: Tue Jul 04, 2006 2:27 am
Posts: 2
Ooops, it's working fine - problem is thrown exception (session context is not rolled back)
milan.pecko wrote:
Hi all,

i'm using hibernate 3.1.3 with websphere 6.0.
I have this problem: Container managed session bean throws exception but changes are commited to database.

Could anybody check my configuration of hibernate

hibernate.cfg.xml:



Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.session_factory_name">hibernate/Excom2HibernateFactory</property>
        <property name="hibernate.connection.datasource">jdbc/Excom2DS</property>
        <property name="show_sql">false</property>
        <property name="dialect">com.pxpfs.utilities.hibernate3.ExcomH3SQLServerDialect</property>
        <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
   <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
      <property name="hibernate.transaction.flush_before_completion">true</property>
      <property name="hibernate.transaction.auto_close_session">true</property>
        <!-- Mapping files -->
    .......

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


I dont do any flush,close, session operation

I tried to use CMTTransactionFactory too but the same result, results are stored to database.


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

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.