Thanks Frank/Michael/Rick for your inputs. I'm in synch with your arguments and thought points.
Simulating server side push by using polling solution with right interval should be the solution having the best trade off in terms of scalability, and interoperability. Regards, Sourav -----Original Message----- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 1:53 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: Web Push Technology Indeed, Rick is correct, this is not really technically feasible given the basic nature of HTTP. Any solution would have to be of pull nature, unless you get into applets of ActiveX or such things. You essentially need to have a server running on the client... then the "real" server could, theoretically, get the IP of the client and "push" requests out to it. But, with nothing to receive it, which is the basic nature of HTTP, your sunk. You can of course do a timed pull type thing, which is pretty typical. For this, AJAX is pretty ideal, assuming you are OK with requiring scripting. If you go that route, I suggest look at AjaxTags in Java Web Parts: http://javawebparts.sourceforge.net Take a look at the Javadocs for the taglib package... I recently added a <ajax:timer> tag that allows you to set up timed AJAX events that will fire at a defined interval while still allowing you to use all the handlers AjaxTags comes with. With this you should be able to do what you want with very little effort on your part (aside from what happens on the server of course, which AjaxTags says nothing about). Whether you use this or not, your talking about a polling solution most likely. But, if the polling interval is fast enough (but not too fast lest you crush your server!), it should work pretty well. Usually, alerts can tolerate some degree of delay, so if you set the interval to 10 seconds or some such, it should be OK. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, January 3, 2006 2:41 pm, Rick Reumann said: > souravm wrote the following on 1/2/2006 11:34 PM: > >> The push will need to be initiated by an alert server or streaming >> engine, which will keep pushing data (alerts) to the users's browsers. > > I don't believe that is possible unless you create some kind of Applet, > but then you aren't really using the browser. > >> 2. What are the relevant technologies avaialble in Java/J2EE for this - >> a) How AJAX an be used ? > > I'd use the buzz word Ajax for that. I only know the very basics of it > thanks to Frank's info here: > > http://www.omnytex.com/articles/xhrstruts/ (download the sample webapp > at the end of the article and you should be all set with the basics). > > > -- > Rick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]