Hi I am planing to develop a messaging module where with in the organization (also across the firewall), employees will be able to send messages to each other. These messages will be stored in the DB and the user will be notified with the message that 'new message is arrived'. To achive this server will need to make the callback to the client. I was planning to use the JMS which will asynchronously log the messages in the DB and will notify the respective user(s). Problem I am facing is with notifying the client which can be a browser instance across the firewall on web. Following are few alternatives which I looked into: 1.Applets: I have read that applet does not help across the firewalls. 2.Polling: This will cause unneccasry network traffic. 3. Holding the client connection: This can become scalability issue. Is there any clean way to achieve this. Any help will be apreciated Thanks in advance
shikharsingh, Javaranch has a naming policy which is strictly enforced. Please review the policy and change your display name if you wish to keep posting here. Thanks.
Joined: Jan 25, 2001
Author and all-around good cowpoke
Joined: Mar 22, 2000
Short form answer = "not with a browser" HTTP is just not designed that way. You could have long duration socket connections through another port, but of course this may cause problems with firewalls. I suppose you could have an applet listening at port 80 just as if it was a web server but your firewall would have to be configured to pass incoming attempts to connect....