We need a client side popup in an intranet application.
A window should pop up on all the clients when another client or a server sends it a message.
This problem can also be expanded to allow a client to send a message to a specific client alone, rather than all the clients, but that is left to the reader as an exercise.
Fig 2 Interpretation of producer – consumer model in the RMI space
The blue lines in the above figure indicate what we are doing beside simple remote callbacks, that differentiate our solution from a client server paradigm.
Each client becomes a true distributed object with the ability to allow other objects to directly reference it and allow for bi-directional communication.
To cover this problem we will write a server object whose task is to:
Register a client as soon as the client is loaded in any browser
Remove them from the list when they are closed, thereby maintaining a listing of all clients existing at any point of time
Notify the clients of the message
Of course the process for making a remote object remains the same:
Sameer Tyagi is a Software Engineer with several years of programming experience in iNet application development and has conducted multiple training workshops in Java. Besides holding an Engineering degree in Electronics he is a Sun Certified Java 1.1 Programmer.
Email: sameertyagi@usa.net
JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for
Windows 95, 98, ME, NT, 2000 and XP. It's designed to
automatically optimize your Windows settings, boosting your
Internet connection up to 200%.
Blackmail Applet
This applet prints out text that looks like letters cut out of a
newspaper. You can specify the text, the width and height of the
applet and the delay after each letter. Future versions will
have more parameters.
While surveys suggest that small businesses aren't prepared for ever-present security dangers, this Boston-area printer has maintained a pristine operation since a scare six years ago.