  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Design discussion | Design discussion 2005-04-12 - By Vijay K Dasari
Back 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@(protected)]On Behalf Of Maya menon Sent: Tuesday, April 12, 2005 11:36 AM To: J2EEPATTERNS-INTEREST@(protected) 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@(protected)
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ 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@(protected) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005>In Client/ Server model using thick clients like SWING, we can use an Observer Pattern ( Publish/Subscribe ), where </SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005>the client subscribes to the messages. when the server gets a new message, it can notify all the subscribers(users).</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005>As Web (HTTP) is stateless, the client has to ask the server for the new messages. </SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005 >Client can make request to a servlet(which tells whether the user has any new messages ) at certain time intervals.</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005>In html we can use the "Refresh" metatag. which looks something like</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005><meta http-equiv="Refresh" content="1800;URL=/servlet/checkNewMessages.do"/></SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005>Vijay.</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=875440916-12042005></SPAN></FONT> </DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> An interest list for Sun Java Center J2EE Pattern Catalog [mailto:J2EEPATTERNS-INTEREST@(protected)]<B>On Behalf Of </B>Maya menon<BR><B>Sent:</B> Tuesday, April 12, 2005 11:36 AM<BR><B>To:</B> J2EEPATTERNS-INTEREST@(protected)<BR><B>Subject:</B> Design discussion<BR><BR></FONT></DIV> <DIV>Our client/server application which work realtime: </DIV> <DIV>Currently we have a client/server application. Our users log into the client and the system delivers messages to the users.<BR>when a new message arrives the users see a signal flashing and therby gets notified about the<BR>new message. </DIV> <DIV> </DIV> <DIV>Now this client needs to be transformed into a web based system.</DIV> <DIV><BR>Instead of the clients logging into the client window, now the users log into the web site.<BR>The same feature has to be provided. <BR>when a new message arrives the users have to see a signal flashing and therby gets notified about the<BR>new message.</DIV> <DIV>Can you all please suggest a good J2ee design approach for this ?</DIV> <DIV> </DIV> <DIV>How do we enable the flashing signal ? I need some suggestions.</DIV> <DIV> </DIV> <DIV>Thanks,<BR><BR></DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> </BLOCKQUOTE> <P> <HR SIZE=1> Do you Yahoo!?<BR>Yahoo! Mail - Find what you need with new enhanced search. <A href="http://us.rd.yahoo.com/evt=29917/*http://info.mail.yahoo.com/mail_250" >Learn more.</A> =================================================================== = 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@(protected)</BLOCKQUOTE> <BR> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __<BR> This email has been scanned by the MessageLabs Email Security System.<BR> For more information please visit http://www.messagelabs.com/email <BR> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __<BR> </BODY></HTML> ==================================================================== 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@(protected)
|
|
 |