Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Design discussion

Maya menon

2005-05-17

Replies:

Scott,
No, This shouldnt be a image on the screen. The icon should exist on the windows toolbar.
 
our current client/server app has a flashing icon which flashes when a new message arrives. This icon exists in the tool bar and its there
when we first login to the app. Now the same feature needs to be put in a web based app. when a
new message arrives, the icon should flash.
Thanks

Scott Powell <scotthpowell@YAHOO.COM> wrote:
Maya,
 
Just about anyone with some basic web design software can create a gif that will flash on the screen.
 
If the user DOES NOT HAVE messages, the page will return <img> pointing to the image source that doesn't flash.
 
If the user DOES HAVE messages, <img>' src attribute will point to the gif that does flash.
 
Scott


Maya menon <maya_java@YAHOO.COM> wrote:
Thanks everyone for their inputs.
 
I have another question with regards to the flashing icon.
Currently the icon exists in the tool bar. How can we have the icon in the tool bar from a web app ?

Mart��n Cabrera <martin.cabrera@ABITAB.COM.UY> wrote:
you can build an applet that runs invisible in your jsp page...the applet will be waiting for server notifications. Every time the applet receives a notification, it can forces your web page to refresh data. For server side, you should implement a simple server that will have a private session for every connected appplet.
 
Hope this helps.
 
Mart��n.


De: An interest list for Sun Java Center J2EE Pattern Catalog [mailto:J2EEPATTERNS-INTEREST@JAVA.SUN.COM] En nombre de jon
Enviado el: martes, 12 de abril de 2005 13:38
Para: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Asunto: Re: Design discussion


I saw a product once that used Javascript to interact with an applet, which then established network connections on its behalf.  I think in that case it was only using straight "pull" HTTP requests, but presumably you could open a connection that would accept a server-initiated "push".

I would expect such an approach to be pretty involved, but you might want to research it more.

Regards,
Jon Petruk


On Tue, 12 Apr 2005 12:22:07 -0400, Vijay K Dasari wrote

> In Client/ Server model using thick clients like SWING, we can  use an Observer Pattern ( Publish/Subscribe ), where
> the client subscribes to the messages. when the server gets a new message, it can notify all the subscribers(users).
>  
> As Web (HTTP) is stateless, the client has to ask the server for the new messages.
> Client can make request to a servlet(which tells whether the user has any new messages) at certain time intervals.
> In html we can use the "Refresh" metatag. which looks something like
>  
> <meta http-equiv="Refresh" content="1800;URL=/servlet/checkNewMessages.do"/>
>  
>  
> Vijay.
>  
>  

> -----Original Message-----
> From: An interest list for Sun Java Center J2EE Pattern Catalog [mailto:J2EEPATTERNS-INTEREST@JAVA.SUN.COM]On Behalf Of Maya menon
> Sent: Tuesday, April 12, 2005 11:36 AM
> To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
> Subject: Design discussion
>
>

> Our client/server application which work realtime:
> Currently we have a client/server application. Our users log into the client and the system delivers messages to the users.
> when a new message arrives the users see a signal flashing and therby gets notified about the
> new message.
>  
> Now this client needs to be transformed into a web based system.
>
> Instead of the clients logging into the client window, now the users log into the web site.
> The same feature has to be provided.
> when a new message arrives the users have to see a signal flashing and therby gets notified about the
> new message.
> Can you all please suggest a good J2ee design approach for this ?
>  
> How do we enable the flashing signal ? I need some suggestions.
>  
> Thanks,
>
>

>
Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search. Learn more. ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com


--
Jonathan Petruk
J. Petruk Consulting Inc.
E-mail: jon@petruk.net
phone:  905-668-9209     fax: 905-668-4728
http://www.petruk.net/

==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005

==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com


Yahoo! Mail
Stay connected, organized, and protected. Take the tour ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.