 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Luciano Cabral Guest
|
Posted: Fri Oct 24, 2003 10:53 pm Post subject: Update all client applications |
|
|
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
|
Posted: Tue Oct 28, 2003 4:56 pm Post subject: Re: Update all client applications |
|
|
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
|
Posted: Mon Nov 03, 2003 10:51 pm Post subject: Re: Update all client applications |
|
|
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 |
|
 |
|
|
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
|
|