-->
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: Different behaviour in debuging and in running
PostPosted: Thu Feb 23, 2006 4:16 am 
Newbie

Joined: Thu Feb 23, 2006 4:03 am
Posts: 1
Hibernate version:
3.1.1

Name and version of the database you are using:
PostgreSQL 8.1.1 on RedHat Linux

Hi all!!

I have one problem I cannot solve. I need to do an atomic operation in an axis service on a postgres DB with lots of transactions (session.save's and updates in for's). And only at the end can I commit my transactions. And all this operation is inside a for loop, that will be executed many times.

The problem I had is, that when I am debugging with eclipse my application, all went well, it is, all the operations run perfectly. But when I try to do a test with maven or running it on tomcat, it begins to create many connections, reaching the maximum on the server.

Why in the debug in eclipse it only creates one connection, and when I execute it on the server or wiht maven it creates many?

I execute the same code with the same values to the same BD, and I monitorize the state of the BD by an external tool.

Thanks a lot in advanced!


Top
 Profile  
 
 Post subject: Transaction management
PostPosted: Tue Feb 28, 2006 7:03 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
You should make sure that a servlet filter provides an appropriate transactional environment for the code, or modify the code containing class to take care of itself.
http://sandbox.sourcelabs.com/kosta/hb- ... /haop.html

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.