BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error reading from the connection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Radu Curca
Guest





PostPosted: Tue Nov 02, 2004 4:01 am    Post subject: Error reading from the connection Reply with quote



We have a three tiered application.
The middle tier is a MIDAS/Datasnap COM+ application which connects to
Interbase/Firebird through BDE.

The COM+ object use a MtsDatamodule which contain a TDatabase component. We
do not use TSession components. When the middle tier application receives
many requests from clients during some load tests (especially when
ApplyUpdates execute very fast) we get the error: "A user transaction
already in progress" error appears. The error appears randomly;

The COM+ application/app server was anhanced to work in multithreaded
envoronment, and we used a standard & recommended solution. A TSession
component was added.
The error "A user transaction already in progress" DOES NOT appear anymore.
Instead, again randomly, the
"Error reading from the connection"/"Error writing to the connection"
appears now.


Some tests peformed on a simple database components - no COM+ app servers -
Showed that "A user transaction already in progress" error appears when
trying to start a transaction on a TDatabase component which is already in
transaction.
"Error writing to the connection" appears when 2 distinct threads try to
access the same connection to IB at the same moment.


Is there a cause for all these error messages?


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.