Article View: borland.public.jbuilder.java.language
Article #15191Notify clients when a value has changed
From: Konstantinidis Panagiotis
Date: Sun, 04 Jul 1999 00:00
Date: Sun, 04 Jul 1999 00:00
20 lines
1780 bytes
1780 bytes
I'm building a web-based application for an intranet and I need to
notify all applets that are currently loaded in all clients of a value
change (basically the primary key of a database which is incremented, by a
servlet, when a new record is created).
My first thought is a bound property which fires a propertyChange event
and the applet listens and displays the new value of the primary key to the
user. After determining that this is not sufficient I added RMI to the
picture. But unfortunatelly once again my goal is not reached since RMI
deals with objects that are serialized and events are not part of that.
Theoritically this situation could be solved with ports communication.
This means that the applets must have a thread listening to a specific port
and everything that changes my primary key send data to that port. The
problem that arises here is that I do not know all the hosts that
potentially need this info, so the servlet wouldn't know in which IPs to
send the data.
Is the theoritical part right? Is there any other easier way to achieve
what I need?
Technical Details
Message-ID:
<7lm6r7$pth$1@medousa.forthnet.gr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,1f8877e7b737ee56,start X-Google-Attributes: gidf5d71,public X-Google-Thread: f74b3,1f8877e7b737ee56,start X-Google-Attributes: gidf74b3,public From: "Konstantinidis Panagiotis" <minotauros@magnet.gr> Subject: Notify clients when a value has changed Date: 1999/07/04 Message-ID: <7lm6r7$pth$1@medousa.forthnet.gr> X-Deja-AN: 496902568 Organization: FORTHnet S.A. - HELLENIC TELECOMMUNICATIONS AND TELEMATICS APPLICATIONS COMPANY X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.language,comp.lang.java X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211