-->
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.  [ 3 posts ] 
Author Message
 Post subject: Inconsistent Saves
PostPosted: Thu Mar 30, 2006 2:53 pm 
Newbie

Joined: Fri Sep 09, 2005 11:40 am
Posts: 12
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.0


We are experiencing intermittent problems with saving data. Our application reports a successful save but when checked, the data is not saved to the database. No exceptions are thrown. We try again it may work. Our production environment is a cluster with multiple managed servers. Our application is deployed to each managed server across mulitiple servers so our application is not actually clustered. The following is in the Hibernate configuration file:



Code:
<hibernate-configuration>
      <session-factory>
            <property name="transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
            <property name="connection.datasource">myDataSource</property>
            <property name="dialect">org.hibernate.dialect.SybaseDialect</property>

           ......  our mappings  .....
      </session-factory>
</hibernate-configuration>



We don't seem to experience this anomaly on our development environment. We develop from PC running a single Weblogic server in development mode and the development or test server is a cluster with 2 managed servers on a single server. I am thinking that perhaps the Weblogic clustering across multiple physical servers may be causing a problem but I am not sure and want to rule out any Hibernate configuration issues we may have.

Any ideas?

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 6:08 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
just a thought here, but if you are saving your session objects between requests, and then at certain points in your logic committing your session, then this might be the reason for the intermitant and inconsistent saving... probably a rudimentary check of making sure that you are using a session-per-request and that all transactions are committed would be the first step... but you probably already did this... ;)

_________________
-JT

If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 8:25 pm 
Newbie

Joined: Fri Sep 09, 2005 11:40 am
Posts: 12
Actually we don't attempt to save any data until the user explicitly clicks the Save Data button. When clicked all data is saved at one time in a transaction, the session flushed and then closed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.