Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Dynamically updatable applet

  Asked By: Jason    Date: Nov 14    Category: Java    Views: 791
  

I have to make two web pages with applets. One page has a data that
changes indeterminantly and the other web page has data that changes
continuously. I want to know how I should design and develop these
applets so they show the change when the data changes in the
database. So as the data changes all the clients with applets that
are open must be updated in real time. If there is an easy way to do
this or a framework that makes the job easier, please let me know.

Share: 

 

5 Answers Found

 
Answer #1    Answered By: Barabas Cohen     Answered On: Nov 14

In my view, It is better that you use AJAX instead of using Applets.
Applets are very lazy and heavy loading components although before
AJAX they are the only dynamic components in Java Web World!

 
Answer #2    Answered By: Stefan Thompson     Answered On: Nov 14

How are your applets  connected to the database? Is it through a JEE layer? If so, I don't think JEE is the best choice for push architectures unless you wanna do crazy things. The best is to define what your real  time quantum is and check the server periodically.

 
Answer #3    Answered By: Ivan Coleman     Answered On: Nov 14

I don't know if there is a framework  for your requirements, But I think observer design  pattern could help you. The model you are talking about is an implementation of observer pattern.

 
Answer #4    Answered By: Jet Brown     Answered On: Nov 14

you can use "call back" pattern..............

 
Answer #5    Answered By: Ludkhannah Fischer     Answered On: Nov 14

If you are forced to use java components (i.e. AJAX rejected), use JMS for the former case and use synchronization like what Farzad said for the latter.
Strictly speaking, your first applet  should subscribe to a JMS topic and get informed whenever changes occur, and your second applet checks periodically and does necessary synchronizations.

 
Didn't find what you were looking for? Find more on Dynamically updatable applet Or get search suggestion and latest updates.




Tagged: