  | 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 jon
Back 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@(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.comJ2EE BluePrints: http://java.sun.com /blueprints/corej2eepatternsList Archive: http://archives.java.sun.com/archives /j2eepatterns-interest.htmlUnsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
-- Jonathan Petruk J. Petruk Consulting Inc. E-mail: jon@(protected) 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@(protected)
<HTML> <HEAD> <META content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1" http-equiv=Content-Type> <META content="OPENWEBMAIL" name=GENERATOR> </HEAD> <BODY bgColor=#ffffff>
<font size="2"><b> <br />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". <br /> <br />I would expect such an approach to be pretty involved, but you might want to research it more. <br /> <br />Regards, <br />Jon Petruk <br /> <br /> <br />On Tue, 12 Apr 2005 12:22:07 -0400, Vijay K Dasari wrote</b> <br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005">In
Client/ Server model using thick clients like SWING, we can? use an
Observer Pattern ( Publish/Subscribe ), where </span></font>
<br />> <font size="2" face="Arial" color="#0000ff"><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>
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"></span></font>?
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005">As Web
(HTTP) is stateless, the client has to ask the server for the new messages.
</span></font>
<br />> <font size="2" face="Arial" color="#0000ff"><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>
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005">In
html we can use the "Refresh" metatag. which looks something
like</span></font>
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"></span></font>?
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"><meta http-equiv="Refresh"
content="1800;URL=/servlet/checkNewMessages.do"/></span></font>
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"></span></font>?
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"></span></font>?
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005">Vijay.</span></font>
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"></span></font>?
<br />> <font size="2" face="Arial" color="#0000ff"><span class="875440916 -12042005"></span></font>?
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px;"> <br />> <font size="2" face="Tahoma">-- --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> <br />> Our client/server application which work realtime:
<br />> 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.
<br />> ?
<br />> Now this client needs to be transformed into a web based system. <br />> <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. <br />> Can you all please suggest a good J2ee design approach for this ? <br />> ?
<br />> How do we enable the flashing signal ? I need some suggestions. <br />> ?
<br />> Thanks, <br />> <br />>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px ; margin-left: 5px;" class="replbq">? </blockquote> <br />>
<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 />>
==================================================================== 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)
<br /> <br /> <br />--
<br /> Jonathan Petruk
<br /> J. Petruk Consulting Inc.
<br /> E-mail: jon@(protected)
<br /> phone: ?905-668-9209 ? ? fax: 905-668-4728
<br /> <a target="_blank" href="http://www.petruk.net/">http://www.petruk.net/</a>
<br />
<br /> </font> </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)
|
|
 |