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 

How to make transactions on midas environment ?

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





PostPosted: Sun Aug 17, 2003 7:56 am    Post subject: How to make transactions on midas environment ? Reply with quote



My program is to transfer the data from a excel file to customer table
and also backup the excel file to another blobfield table . either step's
failure should cause the transaction rollback . I means we will not backup
the excel file without transfer customer data or got the customer data
without excel backup file .
But , if we use midas architecture to build the program . the transaction
feature were not supported since it base on stateless connection . If we
tranfer the whole excel file to mid-tier, the server can not bear so much
operations .
How can i handle it ? should i fall back and refactor the program to be c/s
style ?
Any suggestions or links to articles are welcome .
Thanks in advance.




Back to top
Wayne Niddery [TeamB]
Guest





PostPosted: Sun Aug 17, 2003 12:56 pm    Post subject: Re: How to make transactions on midas environment ? Reply with quote



deboer wrote:
Quote:
My program is to transfer the data from a excel file to customer
table and also backup the excel file to another blobfield table .
either step's failure should cause the transaction rollback . I
means we will not backup the excel file without transfer customer
data or got the customer data without excel backup file .
But , if we use midas architecture to build the program . the
transaction feature were not supported since it base on stateless
connection . If we tranfer the whole excel file to mid-tier, the
server can not bear so much operations .

If you intend to b-u the excel file into a blob field, then the entire excel
file must be transferred to the mid-tier anyway. To help this, you could
perform compression on the client side first and store it that way.

There are a couple of ways to do this with DataSnap (MIDAS). The excel file
can be passed as an extra parameter to your existing ClientDataset that is
applying the customer table, or you could export a method from the mid-tier
that takes both the customer ClientDatasets Delta property and the
compressed excel doc as parameters and in that method you can wrap both
operations in a single transaction very easily.

--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson



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.