Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: refresh JSP webpage when jms message is received or Apache DBdatabase is changed

Reply
Thread Tools

Re: refresh JSP webpage when jms message is received or Apache DBdatabase is changed

 
 
Arne Vajhøj
Guest
Posts: n/a
 
      02-10-2010
On 09-02-2010 11:18, albert kao wrote:
> I want to use Push simulated via long poll: write some JavaScript
> (AJAX style).
> How are this idea?
> On the server a file is created that holds a timestamp (for example).
> Pull that file from the web client every 10 secs or so. If it is
> changed,
> refresh the web page.
> Also, when a jms message is received or Apache DB database is changed,
> update that file on the server
> with the new timestamp in it.


That sounds awfully primitive.

The servlet code processing your AJAX request should
be able to return XML (or JSON) based on in memory
data structures.

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
refresh JSP webpage when jms message is received or Apache DBdatabase is changed albert kao Javascript 3 02-09-2010 08:37 PM
Dynamically refresh (update) JSP webpage when JMS notification isreceived albert kao Javascript 1 02-02-2010 11:34 PM
Dynamically refresh (update) JSP webpage when JMS notification isreceived albert kao Java 1 02-02-2010 11:34 PM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
How to setup JBoss for JMS (not MDB-JMS) ? Thomas Stein Java 0 10-18-2004 09:10 PM



Advertisments