Posted on 2002-07-12
On one of our websites there is a market monitor. Our content writers update the monitor throughout the day. On our website we have a pop-up window that right now just uses a meta refresh to refresh the contents of the asp page every 10 seconds. The problem that we are having is that there are potentialy thousands of users looking at the monitor at a time and a good deal of them are complaining about getting script timeouts on it. Others are complaining about it refreshing when there are no updates to the monitor.
I would like to have the process be run below:
The market monitor would become a java applet.
The applet would open a socket connection to a java app running on the server that the applet originated from.
The java application would take the IP address from the applet and store it in some sort of database.
The java application would check the database for updates and broadcast them to all the applets that are currently open.
I read about multicasting in two of the java books that I purchased. They talk about joining groups and then broadcasting to the group. Can this be used with a java applet. The java application is going to be run on the same server that is hosting the java applet so is this a possibility. Or is this something that can be used with a protocal like JXTA.
I need to know if this will work. The client apps have to be java applets(portability) or some sort of browser clients as the people using the monitor will not download software.
If this will not work what will?
If JXTA is a possibility please give a link to a website that shows how to use it and use it with applets.