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 

Update all client applications

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





PostPosted: Fri Oct 24, 2003 10:53 pm    Post subject: Update all client applications Reply with quote



I'd like that when I change a record in a client application, all others
applications that are running have the record added or updated. Have any
method that makes it for me? or I have to use a TTimer and execute a refresh
all time?


Back to top
Robert Cerny
Guest





PostPosted: Tue Oct 28, 2003 4:56 pm    Post subject: Re: Update all client applications Reply with quote



Simply create a notification method in mid tier. It can't be done with
stateless server, of course.
However, it is problematic like the pessimistic locking in C/S, because:
- not all clients are interested in all modifications, so you generate a lot
of unnecessary traffic, which grows exponentially with complexity of
application and number of clients, so you use bandwidth required for more
important operations.
- you will have cascaded modifications: one modification would require
clients to reload dependent data, again whether the client needs it or not.
- etc.

My advice is to reconsider design and way of thinking. It's like moving from
single tier to two tier or from pessimistic to optimistic locking. Reading
relevant books helps.
--
Robert Cerny
DelphiShaman

"Luciano Cabral" <luciano (AT) comtraje (DOT) com.br> wrote

Quote:
I'd like that when I change a record in a client application, all others
applications that are running have the record added or updated. Have any
method that makes it for me? or I have to use a TTimer and execute a
refresh
all time?





Back to top
Marcelo
Guest





PostPosted: Mon Nov 03, 2003 10:51 pm    Post subject: Re: Update all client applications Reply with quote



Hi
I think it can be done using interbase events and a custom callback, where
yo do whatever necessary according to your interest in the event.
Marcelo
"Luciano Cabral" <luciano (AT) comtraje (DOT) com.br> escribió en el mensaje
news:3f999f3f (AT) newsgroups (DOT) borland.com...
Quote:
I'd like that when I change a record in a client application, all others
applications that are running have the record added or updated. Have any
method that makes it for me? or I have to use a TTimer and execute a
refresh
all time?





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.